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
getReportById() method take employeeId (Integer) as a input and display all the working details of an employee.
@RequestMapping(value = "/getReportById", method = RequestMethod.POST) public @ResponseBody String getReportById(@RequestParam("employeeId") int employeeId) { logger.info("inside ReportGenerationController getReportById()"); return reportGenerationService.getEmployeeWorkingDetailsById(employeeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "@GetMapping(value=\"/employes/{Id}\")\n\tpublic Employee getEmployeeDetailsByEmployeeId(@PathVariable Long Id){\n\t\t\n\t\tEmployee employee = employeeService.fetchEmployeeDetailsByEmployeeId(Id);\n\t\t\n\t\treturn employee;\n\t\t}", "public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n\tpublic EmployeeBean getEmployee(int employeeId) {\n\t\tLOGGER.info(\"starts getEmployee method\");\n\t\tLOGGER.info(\"Ends getEmployee method\");\n\t\treturn adminEmployeeDao.getEmployee(employeeId);\n\t}", "@Override\n\tpublic EmployeeBean getEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.getEmployeeDetails(id);\n\t}", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "public String getEmployeeById(int id) {\n\t\t//logger.info(\"Inside get employee by id.... Now calling get employee by id\");\n\t\t\n\t\t//logger.log(Level.FINEST ,\"theEmployee value is:....................................\"+theEmployee);\n\t\ttry {\n\t\t\tEmployee theEmployee=getEmployeeService().getEmployeeByID(id);\n\t\t\tExternalContext externalContext= FacesContext.getCurrentInstance().getExternalContext();\n\t\t\tMap<String,Object> requestMap= externalContext.getRequestMap();\n\t\t\trequestMap.put(\"employeeBean\", theEmployee);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//logger.info(\"displaying the map................\"+requestMap);\n\t\treturn \"update\";\n\t}", "public String getEmployeeDetails(int employeeId) {\n\treturn employeeService.getEmployeeDetails(employeeId).toString(); \n }", "@GetMapping(value=\"employee/{employeeId}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable(\"employeeId\") int employeeId)\n\t{\n\t\treturn employeeService.getEmployeeById(employeeId);\n\t}", "@Override\n\tpublic Employee getEmployeeById(int employeeId) {\n\t\ttry {\n\t\t\treturn template.queryForObject(\"select * from employee where empid = ?\", new Object[] { employeeId },\n\t\t\t\t\tnew RowMapper<Employee>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Employee mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tEmployee emp = new Employee();\n\t\t\t\t\t\t\temp.setEmployeeId(rs.getInt(\"empid\"));\n\t\t\t\t\t\t\temp.setFirstName(rs.getString(\"fname\"));\n\t\t\t\t\t\t\temp.setLastName(rs.getString(\"lname\"));\n\t\t\t\t\t\t\temp.setEmail(rs.getString(\"email\"));\n\t\t\t\t\t\t\temp.setDesignation(rs.getString(\"desig\"));\n\t\t\t\t\t\t\temp.setLocation(rs.getString(\"location\"));\n\t\t\t\t\t\t\temp.setSalary(rs.getInt(\"salary\"));\n\t\t\t\t\t\t\treturn emp;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t} catch (EmptyResultDataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "@GetMapping(\"/employees/{id}\")\n public ResponseEntity<Employee> getEmployeeById(@PathVariable(value = \"id\") long employeeId) throws ResourceNotFoundException {\n Employee employee = service.getEmployeeById(employeeId).orElseThrow(() -> new ResourceNotFoundException(\"Employee not found for this id: \" + employeeId));\n return ResponseEntity.ok().body(employee);\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "@RequestMapping(value=\"/getEmployee/{employeeId}\", method = RequestMethod.GET)\r\n\tpublic String getEmployeeById(@PathVariable(\"employeeId\") Integer employeeId, Model model) {\r\n\t\tEmployeeModel employeeModel = employeeService.getEmployeeById(employeeId);\r\n\t\tcom.ps.model.Model.MODE = \"Update\";\r\n\t\tmodel.addAttribute(\"employeeData\", employeeModel);\r\n\t\treturn \"search-employee\";\r\n\t}", "@ApiOperation(value = \"getEmployeeById controller method\")\r\n\t@GetMapping(value = \"/getEmployeeById/{employeeId}\")\r\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Integer employeeId) {\r\n\r\n\t\tLog.info(\" Employee Controller Triggerd\");\r\n\r\n\t\tEmployee employee = employeeService.getEmployeeById(employeeId);\r\n\t\treturn new ResponseEntity<Employee>(employee, HttpStatus.OK);\r\n\t}", "@GetMapping(\"/getEmployeeByID/{id}\")\n\t\tpublic ResponseEntity<EmployeeMon> getEmployeeByID(@PathVariable Integer id) throws Exception {\n\t\t\tEmployeeMon model = repository.findById(id)\n\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Employee not found for this id :: \" + id));\n\t\t\treturn ResponseEntity.ok().body(model);\n\t\t}", "@Override\r\n\tpublic DataResult<Employees> getById(int id) {\n\t\treturn null;\r\n\t}", "public Employee getEmployeeById(Long employeeId) {\n return employeeRepository.findEmployeeById(employeeId);\n }", "@GetMapping(\"/employee/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\t\n\t\tEmployee employee = emprepo.findById(id).orElseThrow(()-> new ResourceNotFoundException(\"Employee not exist with id: \" + id)); \n\t\t\n\t\treturn ResponseEntity.ok(employee);\n\t}", "@Override\r\n\tpublic Employee findEmployeeById(int empId) {\n\t\tEmployee employee = null;\r\n\t\tString findData = \"select * from employee where empId=?\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(findData);\r\n\t\t\tps.setInt(1, empId);\r\n\r\n\t\t\tResultSet set = ps.executeQuery();\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\temployee = new Employee(id, sal, name, tech);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employee;\r\n\r\n\t}", "@RequestMapping(value = \"/i\", method = RequestMethod.GET)\n\tpublic ModelAndView doUniqueReport(ModelAndView modelAndView, @RequestParam(\"id\") final String reportId) {\n\n\t\tLOGGER.debug(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\t\tLOGGER.info(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tassessmentList = assessmentServices.findByReportId(reportId);\n\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\tLOGGER.info(\"assessmentList.get(0).getUserId() \" + assessmentList.get(0).getUserId());\n\t\tuserList = userServices.findByUserId(assessmentList.get(0).getUserId());\n\t\tLOGGER.info(\"@@@@@@@@@@@@@@userList \" + userList.toString());\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\treturn modelAndView;\n\t}", "@GetMapping(\"/employee/{id}\")\r\n\tpublic Employee get(@PathVariable Integer id) {\r\n\t \r\n\t Employee employee = empService.get(id);\r\n\t return employee;\r\n\t \r\n\t}", "public Employee getByID(int empId) {\n\t\tEmployee e = employees.get(empId);\n\t\tSystem.out.println(e);\n\t\treturn e;\n\t}", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n\n\tpublic StudentBean dispalyemployee(Integer id) {\n\t\tStudentBean employee = null;\n\t\tfor(StudentBean e:stu)\n\t\t{ \n\t\t\tif(e.getStuId()==id)\n\t\t\t{ \n\t\t\t\temployee=e;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn employee ;\n\t}", "@GetMapping(\"/employee/{id}\")\n public Employee getEmployeeById(@PathVariable(value = \"id\") Integer id){\n\n Employee employee = employeeService.findEmployeeById(id);\n\n return employee;\n }", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@RequestMapping(path = \"/employee/{id}\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic Optional<Employee> displayEmployeeById() {\r\n\t\treturn er.findById(1);\r\n\t}", "@Override\n\tpublic Employee getById(Integer employeeId) {\n\t\treturn employeeDao.getById(employeeId);\n\t}", "public Employee getEmployeeDetailById(int id) {\n\t\treturn dao.getEmployeeDetailById(id);\n\t}", "public String employeeName(int employeeId) {\n\n String nameOfEmployee = \"\";\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (idField == employeeId) {\n nameOfEmployee = nameField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The selected ID belongs to the following employee: \");\n return nameOfEmployee;\n }", "@GetMapping(\"/employee/{id}\")\r\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id)\r\n\t{\r\n\t\tEmployee emp=empdao.findOne(id);\r\n\t\tif(emp == null)\r\n\t\t{\r\n\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\treturn ResponseEntity.ok().body(emp);\r\n\t}", "@GetMapping(\"/employees/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\tEmployee orElseThrow = repo.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Employee not exist with id \" + id));\n\t\treturn ResponseEntity.ok(orElseThrow);\n\t}", "@Override\r\n\tpublic Employee getEmployee(int id) {\n\t\treturn employees.stream().filter(emp -> emp.getEmpId()==(id)).findFirst().get();\r\n\t}", "@Override\n\tpublic List<Booking> getDetails(String empid) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where employeeId=\"+empid);\n\t\treturn query.list();\n\t}", "@Override\n\tpublic Employee getEmployeeById(int emp_id) {\n\t\tlog.debug(\"EmplyeeService.getEmployeeById(int emp_id) return Employee object with id\" + emp_id);\n\t\treturn repositary.findById(emp_id);\n\t}", "public Employee getEmployeeById(int id) {\n\t\tEmployee employee;\n\t\temployee = template.get(Employee.class, id);\n\t\treturn employee;\n\t}", "@Path(\"appliedLeave/{empId}\")\r\n\t@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic AppliedLeaveDetails getAppliedLeaveDetails(@PathParam(\"empId\") String empId) {\r\n\t\tAppliedLeaveDetails AppliedLeaveDetails = new AppliedLeaveDetails();\r\n\t\tArrayList<AppliedLeaveDetails> appliedleave = new ArrayList<AppliedLeaveDetails>();\r\n\t\ttry {\r\n\t\t\tappliedleave = getAllAppliedLeaveDetails();\r\n\t\t\tfor (int i = 0; i < appliedleave.size(); i++) {\r\n\r\n\t\t\t\tif (appliedleave.get(i).getEmpId().equalsIgnoreCase(empId)) {\r\n\t\t\t\t\tAppliedLeaveDetails.setEmpId(empId);\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveDescription(appliedleave.get(i).getLeaveDescription());\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveType(appliedleave.get(i).getLeaveType());\r\n\t\t\t\t\tAppliedLeaveDetails.setStatus(appliedleave.get(i).getStatus());\r\n\t\t\t\t\tAppliedLeaveDetails.setFrom(appliedleave.get(i).getFrom());\r\n\t\t\t\t\tAppliedLeaveDetails.setTo(appliedleave.get(i).getTo());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn AppliedLeaveDetails;\r\n\t}", "@RequestMapping(value = \"/bankInfoByEmpId/{empId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public HrEmpBankAccountInfo getEmpBankInfoByEmpId(@PathVariable long empId) {\n log.debug(\"REST request to get BankInfoByEmpId : empId: {}\", empId);\n HrEmpBankAccountInfo bankInfo = hrEmpBankAccountInfoRepository.findByEmployeeInfo(empId);\n return bankInfo;\n }", "@RequestMapping(value = BASE_URL_API + GET_EMPLOYEE_DETAIL_BY_ID_API, method = RequestMethod.GET)\r\n public ResponseEntity<?> getEmployeeDetail(@PathVariable(\"id\") String id) {\r\n checkLogin();\r\n EmployeeVO employeeDetail = employeeService.getEmployeeById(id);\r\n\r\n return new ResponseEntity<EmployeeVO>(employeeDetail, HttpStatus.OK);\r\n }", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@GetMapping(\"{id}\")\n\t@Secured(Roles.ADMIN)\n\tpublic ResponseEntity<EmployeeDto> getById(@PathVariable long id) {\n\t\tLogStepIn();\n\n\t\tEmployee employee = employeeRepository.findById(id);\n\n\t\tif (employee == null)\n\t\t\treturn LogStepOut(ResponseEntity.notFound().build());\n\t\telse\n\t\t\treturn LogStepOut(ResponseEntity.ok(toDto(employee)));\n\t}", "public WeekAssignmentPerEmployee getOne(Long id) {\n\t\ttry{\n\t\t\t//tx.begin();\n\t\t\tWeekAssignmentPerEmployee weekAssignmentPerEmployee = (WeekAssignmentPerEmployee)em.find(WeekAssignmentPerEmployee.class, id);\n\t //tx.commit();\n\t return weekAssignmentPerEmployee;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tthrow new BusinessException(new ExceptionMessage(\"Failed in WeekAssignmentPerEmployeDao : getOne ...\"));\n\t\t}finally{\n\t\t\tem.close();\n\t\t}\n\n\t\t\n\t}", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "public Employee getEmployeeByID(int id) {\n\t\t\r\n\t\ttry {\r\n\t\t\tEmployee f = temp.queryForObject(\"Select * from fm_employees where EID =?\",new EmployeeMapper(),id);\r\n\t\t\treturn f;\r\n\t\t} catch (EmptyResultDataAccessException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Optional<Employee> getEmployeeById(int Id) {\n\t\treturn employeeDao.getEmployeeById(Id);\n\t}", "@GET\n\t@Consumes(\"text/plain\")\n\t@Produces(\"application/json\")\n\t@Path(\"/get/{id}\")\n\tpublic Response getEmployee(@PathParam(\"id\") String id) {\n\t\tid = id.trim();\n\t\tif (bookedTickets.containsKey(id)) {\n\t\t\tMap<String, String> info = new HashMap<>();\n\t\t\tinfo = bookedTickets.get(id);\n\t\t\tTicket ticket = new Ticket();\n\t\t\tticket.setDate(info.get(\"date\"));\n\t\t\tticket.setFoodItems(info.get(\"foodItems\"));\n\t\t\tticket.setSeats(info.get(\"seats\"));\n\t\t\tticket.setShowTime(info.get(\"showTime\"));\n\t\t\tticket.setTheater(info.get(\"theater\"));\n\t\t\tticket.setTicketNo(info.get(\"ticketNo\"));\n\t\t\tticket.setTotalPrice(info.get(\"totalPrice\"));\n\t\t\t\n\t\n\t\t\treturn Response.ok(ticket).build();\n\t\t}\n\n\t\tMessage msg = new Message();\n\t\tmsg.setMessage(\"ID is not registered\");\n\t\treturn Response.ok(msg).build();\n\n\t}", "public Employee viewInformation(int id) {\n\t\tEmployee employee = new Employee(); \n\t\ttry{ \n\n\t\t\tString sql = \"select * from employees where id = \"+id; \n\t\t\tConnection connection = DBConnectionUtil.getConnection();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(sql);\n\n\t\t\tresultSet.next();\n\t\t\temployee.setId(resultSet.getInt(\"employee_id\"));\n\t\t\temployee.setUsername(resultSet.getString(\"username\"));\n\t\t\temployee.setPassword(resultSet.getString(\"password\"));\n\t\t\temployee.setFirstName(resultSet.getString(\"first_name\"));\n\t\t\temployee.setLastName(resultSet.getString(\"last_name\"));\n\t\t\temployee.setEmail(resultSet.getString(\"email\"));\n\t\t\t\n\t\t\treturn employee;\n\t\t\t \n\t\t}catch(Exception e){System.out.println(e);} \n\t\treturn null; \t\t\n\t}", "@GetMapping(\"/one/{id}\")\n\tpublic ResponseEntity<?> getOneEmployee(@PathVariable Integer id) {\n\t\tResponseEntity<?> response = null;\n\t\ttry {\n\t\t\tEmployee employee = service.getOneEmployee(id);\n\t\t\tresponse = new ResponseEntity<Employee>(employee, HttpStatus.OK); // 200\n\t\t} catch (EmployeeNotFoundException enfe) {\n\t\t\tthrow enfe;\n\t\t}\n\t\treturn response;\n\t}", "@RequestMapping(value=\"/employee/getEmployeeById\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic EmployeeModel getEmployeeById1(@RequestParam(\"employeeId\") Integer employeeId, Model model) {\r\n\t\tEmployeeModel employeeModel = employeeService.getEmployeeById(employeeId);\r\n\t\treturn employeeModel;\r\n\t\t/*com.ps.model.Model.MODE = \"Update\";\r\n\t\tmodel.addAttribute(\"employeeData\", employeeModel);\r\n\t\treturn \"search-employee\";*/\r\n\t}", "@Override\n\tpublic Empdetails getemp(int empid) {\n\t\treturn empDAO.getemp(empid);\n\t}", "@GET\n\t@Path(\"{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getEmployeeById(@PathParam(\"id\") String id) throws ParseException{\n\t\tString message = \"{}\";\n\t\t\n\t\tJSONObject employeesJsonObject = (JSONObject) parser.parse(getFileContent());\n\t\tJSONArray employeesArray = (JSONArray) employeesJsonObject.get(\"employee\");\n\t\tJSONObject employee;\n\t\t\n\t\t/*checking each employee*/\n\t\tfor ( int i = 0 ; i < employeesArray.size() ; i++ ){\n\t\t\temployee = ((JSONObject) employeesArray.get(i));\n\t\t\t\n\t\t\tif(employee.get(\"id\").toString().equalsIgnoreCase(id)){\n\t\t\t\tmessage = employee.toString();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}", "@Override\n\tpublic Employee findByemployeeId(Long id) {\n\t\treturn employeeRepository.findById(id).orElse(null);\n\t}", "@Override\r\n\tpublic ReportAndSummary findById(int id) {\n\t\tReportAndSummary result = reportAndSummaryDao.findById(id);\r\n\t\treturn result;\r\n\t}", "@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 }", "@RequestMapping(value = \"/getAllEmployeesWorkingDetails\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesWorkingDetails() {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesWorkingDetails()\");\r\n\r\n return reportGenerationService.getAllEmployeesWorkingDetails();\r\n }", "ApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;", "@Override\n\tpublic Employee getEmployeeById(int id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Employee getEmployeeById(int id) {\n\t\treturn null;\n\t}", "@GET\n @Path(\"/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGetbyId(@PathParam(\"id\") String id) {\n Gson gson = GSONFactory.getInstance();\n Employee employee = getEmployeeById(id);\n\n if (employee == null) {\n Response response = Response.status(404).build();\n return response;\n } else {\n String jsonOutput = gson.toJson(employee);\n Response response = Response.ok().entity(jsonOutput).build();\n return response;\n }\n }", "public String getReport(String booking_id) {\n\t\tString sql = \"select report from bookings where booking_id =?\";\n\t\treturn jdbcTemplate.queryForObject(sql, String.class, booking_id); \n\t}", "@GetMapping(\"/getrequirements/{empId}\")\n\t public ResponseEntity<List<Requirement>> getAllRequirements(@PathVariable int empId)\n\t {\n\t\t List<Requirement> fetchedRequirements=employeeService.getAllRequirements(empId);\n\t\t \n\t\t if(fetchedRequirements.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t\t return new ResponseEntity<List<Requirement>>(fetchedRequirements,HttpStatus.OK); \n }", "String showPaySlip(int empId) {\n\t\tString payslip=\"Employee with given empid is not available in database\";\n\t\tIterator<Employee> iter=list.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tEmployee em=iter.next();\n\t\t\tif(em.getEmpId()==empId) \n\t\t\t\tpayslip=\"Payslip of Employee with EmpID \"+em.getEmpId()+\" is \"+em.getSalary();\n\t\t}\n\t\treturn payslip;\n\t\t\n\t}", "@Override\n\tpublic Empdetails findById(int empid) {\n\t\t\t\treturn empDAO.findById(empid);\n\t}", "@Override\n\tpublic Employee getEmployeeById(Integer id) {\n\t\treturn null;\n\t}", "@GetMapping(\"/employeewiseapprovals\")\n\t\tpublic List<Approval> getEmployeeWiseApprovals(@RequestParam(\"employeeId\") int employeeId)\n\t\t{\n\t\t\tList<Approval> approval= service.searchemployeewiseapproval(employeeId);\n\t\t\treturn approval;\n\t\t}", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "@GetMapping(\"/one/{id}\")\n\tpublic ResponseEntity<?> fetchOneData(@PathVariable(\"id\") Integer id) {\n\t\tResponseEntity<?> res = null;\n\t\ttry {\n\t\t\tEmployee emp = service.getOneEmpObject(id);\n\t\t\tres = new ResponseEntity<Employee>(emp, HttpStatus.OK);\n\t\t} catch (Exception e) {\n\t\t\tres = new ResponseEntity<String>(\"Unable Featch Data \", HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "@GetMapping(\"/external/{id}\")\n\t\t\t@JsonView(Views.External.class)\n\t\t\tpublic Optional<Employee> getEmployeeById(@PathVariable(\"id\") @Min(1) Long id) {\n\t\t\t\tSystem.out.println(\"id\"+id);\n\t\t\t\ttry {\n\t\t\t\t\treturn employeeService.getEmployeeById(id);\n\t\t\t\t} catch (UserNotFoundException e) {\n\t\t\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}", "public Employee getEmployeeById(int id) {\r\n\t\treturn employee1.get(id);\r\n\t}", "@Override\n\tpublic Employee getEmployeeById(int empId) {\n\t\treturn null;\n\t}", "public Optional<Employee> getEmployee(int id) {\n\n\t\tOptional<Employee> employeeList = employeeRepository.findById(id);\n\n\t\tif (employeeList.isEmpty()) {\n\n\t\t\tthrow new NoDataFoundException(\"Employee is empty\");\n\t\t}\n\t\treturn employeeList;\n\n\t}", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "@GetMapping(\"/{id}\")\n public Employee findById(@PathVariable(\"id\") Long id){\n return employeeService.findById(id);\n }", "@GET\n @Path(\"/getEmployeeById/{empId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getEmployeeById(@PathParam(\"empId\") String empId){\n String output = \"\";\n try {\n Employee employee = new Employee();\n employee = EmployeeFacade.getInstance().getEmployeeById(empId);\n output = gson.toJson(employee);\n \n } catch (IOException e) {\n output = \"Error\";\n }\n return output;\n }", "@GetMapping(\"/internal/{id}\")\n\t\t\t@JsonView(Views.Internal.class)\n\t\t\tpublic Optional<Employee> getEmployeeByIdInternal(@PathVariable(\"id\") @Min(1) Long id) {\n\t\t\t\ttry {\n\t\t\t\t\treturn employeeService.getEmployeeById(id);\n\t\t\t\t} catch (UserNotFoundException e) {\n\t\t\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}", "@Override\n\tpublic Employee findById(int id) {\n\t\tList<Employee> employeeList= \n\t\tlistEmployee().stream().filter((e -> e.getId()==id)).collect(Collectors.toList());\n\t\t\n\t\treturn (Employee)employeeList.get(0);\n\t}", "public Optional<Employee> getEmployee(Long id){\n return employeeRepository.findById(id);\n }", "public Employee getEmployeeById(int id) {\n Employee foundedEmployee = null;\n String SQL = \"SELECT * FROM `employees` WHERE `idEmployee` =\" + id + \"\";\n MysqlDbManager dbManager = MysqlDbManager.getInstance();\n try {\n ResultSet resultSet = dbManager.getResultSet(SQL);\n while (resultSet.next()) {\n foundedEmployee = new Employee(resultSet);\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException\" + e.toString());\n } finally {\n try {\n if (!dbManager.getPreparedStatement().isClosed()) {\n dbManager.getPreparedStatement().close();\n }\n if (!dbManager.getResultSet().isClosed()) {\n dbManager.getResultSet().close();\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException\" + e.toString());\n }\n }\n return foundedEmployee;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getEmployee( @NotNull(message = \"Employee ID cannnot be null\")\n @QueryParam(\"empId\") String empId) {\n return null;\n }", "@Override\n public Employee getEmployee(int employeeId) {\n return null;\n }", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "@Override\r\n\tpublic TAnalysisReport findById(Integer id) {\n\t\treturn analysisreportdao.getById(id);\r\n\t}", "@Path(\"leaveBalanceDetails/{empId}\")\r\n\t@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic EmployeeLeaveBalanceDetails getEmployeeLeaveBalanceDetails(@PathParam(\"empId\") String empId) {\r\n\t\tEmployeeLeaveBalanceDetails EmployeeLeaveBalanceDetails = new EmployeeLeaveBalanceDetails();\r\n\t\tArrayList<EmployeeLeaveBalanceDetails> leavedetails = new ArrayList<EmployeeLeaveBalanceDetails>();\r\n\t\ttry {\r\n\t\t\tleavedetails = getAllEmployeesLeaveBalanceDetails();\r\n\t\t\tfor (int i = 0; i < leavedetails.size(); i++) {\r\n\r\n\t\t\t\tif (leavedetails.get(i).getEmpId().equalsIgnoreCase(empId)) {\r\n\t\t\t\t\tEmployeeLeaveBalanceDetails.setEmpId(empId);\r\n\t\t\t\t\tEmployeeLeaveBalanceDetails.setLop(leavedetails.get(i).getLop());\r\n\t\t\t\t\tEmployeeLeaveBalanceDetails.setOptionalLeave(leavedetails.get(i).getOptionalLeave());\r\n\t\t\t\t\tEmployeeLeaveBalanceDetails.setOtherLeave(leavedetails.get(i).getOtherLeave());\r\n\t\t\t\t\tEmployeeLeaveBalanceDetails.setBalance(leavedetails.get(i).getBalance());\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn EmployeeLeaveBalanceDetails;\r\n\t}", "@GetMapping(value = \"/getGreetingByID\")\n\tpublic ResponseEntity<String> getEmployeeByID(@RequestParam(name = \"id\") int id) {\n\t\treturn new ResponseEntity<>(greetingService.getEmployeeByID(id), HttpStatus.OK);\n\t}", "@GetMapping(value = {\"/{id}\", \"/{id}/\"})\n public ResponseEntity<Employee> loadEmployee(@NotBlank @PathVariable(\"id\") String id){\n Employee employee = employeeService.getEmployee(id);\n return new ResponseEntity<>(employee, HttpStatus.OK);\n }", "@RequestMapping(value = \"/download/IPMReportPDF\", method = RequestMethod.GET)\n\tpublic ModelAndView doIndividualIPMReportPDF(ModelAndView modelAndView,\n\t\t\t@RequestParam(\"workmail\") final String email, @RequestParam(\"id\") final Integer assId) {\n\n\t\tLOGGER.debug(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\t\tLOGGER.info(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tuserList = userServices.findByWorkMail(email);\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tassessmentList = assessmentServices.findByUserIdAssId(user.getUserId(), assId);\n\t\t\t// suggestionList = suggestionServices.findByLvlId(1);\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\t\t\t// LOGGER.info(\"dataList \"+dataList.toString());\n\n\t\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\n\t\t\t// Retrieve our data from a custom data provider\n\t\t\t// Our data comes from a DAO layer\n\t\t\t// DemoDAO dataprovider = new DemoDAO();\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\t// Assign the datasource to an instance of JRDataSource\n\t\t\t// JRDataSource is the datasource that Jasper understands\n\t\t\t// This is basically a wrapper to Java's collection classes\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\t// In order to use Spring's built-in Jasper support,\n\t\t\t// We are required to pass our datasource as a map parameter\n\t\t\t// parameterMap is the Model of our application\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\t// parameterMap.put(\"username\", user.getFirstName()+\"\n\t\t\t// \"+user.getLastName());\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\t// pdfReport is the View of our application\n\t\t\t// This is declared inside the /WEB-INF/jasper-views.xml\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\t// Return the View and the Model combined\n\t\treturn modelAndView;\n\t}", "public Employee listEmployeeById(int id) throws SQLException {\n\t\t\treturn employeeDAO.listEmployeeById(id);\n\t\t}", "public EmployeeDto getEmployee(Long employeeId) throws ApiDemoBusinessException;", "public Employee retrieveEmployee(Integer employeeId) {\n\t\t\n\t\tif(null == employeeId){return null;}\n\t\t\n\t\tif(log.isTraceEnabled()){\n\t\t\tlog.trace(\"mapping objects about to begin employee -> employeeBo\");\n\t\t}\n\n\t\tEmployeeBo employeeBo = new EmployeeBo(employeeId);\n\t\t\n\t\tif(employeeBo == null){\n\t\t\tlog.error(\"mapping objects was NOT successfull employee -> employeeBo ?:\"+employeeBo);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\temployeeBo = new EmployeeDao(getSessionFactory()).retrieveOne(employeeBo);\n\n\t\tEmployee employee = Mapper.employeeMapper.map(employeeBo);\n\n\t\treturn employee;\n\t}", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "@Override\n\tpublic Employee getEmployeeByID(int empid) throws RemoteException {\n\t\treturn DAManager.getEmployeeByID(empid);\n\t}", "@RequestMapping(value = \"/getEmpoyeeById\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic Stream<Employee> getEmpoyeeById(@RequestParam int id){\r\n\t\treturn repository.getAllEmpoyees().stream().filter(emp -> emp.getEmpId() == id);\r\n\t}", "@Override\n\tpublic Health getHealthInfo(String id) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Health healthInfo = restTemplate.getForObject(BASE_URL + HEALTH_STATUS_URL, Health.class, id);\n\t\t logger.debug(\"Employee Info :\" + healthInfo);\n\t\treturn healthInfo;\n\t}", "public EmployeeDTO getEmployee(final Long id) {\n\t\tfinal String sql = \"SELECT * FROM EMPLOYEES WHERE ID = ?\";\n\t\tfinal Object[] args = new Object[] { id };\n\n\t\treturn jdbcTemplate.queryForObject(sql, args, new EmployeeRowMapper());\n\t}", "@Override\n\t@Transactional\n\tpublic Employee findEmployeeById(int id) {\n\t\treturn employeeDao.findEmployeeById(id);\n\t}", "public Employee getEmployeebyId(int id) {\r\n\t\tEmployee e = SQLUtilityEmployees.getEmpByID(id);\r\n\t\treturn e;\r\n\t\t\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<CaseReport> findOne(Long id) {\n log.debug(\"Request to get CaseReport : {}\", id);\n return caseReportRepository.findById(id);\n }", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchadminemployee\")\n\tpublic ModelAndView gettEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"adminemployeedelete.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}" ]
[ "0.7305663", "0.6717727", "0.6675294", "0.66194195", "0.6572883", "0.6559935", "0.6558279", "0.65517884", "0.6495208", "0.6484965", "0.63941586", "0.6388648", "0.6361296", "0.6353858", "0.63395965", "0.6298062", "0.62826854", "0.6242859", "0.62281346", "0.6220723", "0.6200958", "0.6189434", "0.61839473", "0.6176021", "0.6158486", "0.6155735", "0.6124768", "0.61091214", "0.60932684", "0.60726064", "0.60723317", "0.60506105", "0.6047536", "0.60050505", "0.60040873", "0.600078", "0.5997344", "0.59950495", "0.59802353", "0.5952903", "0.5940027", "0.5937413", "0.5934628", "0.5913707", "0.58998376", "0.58932805", "0.5887809", "0.58806187", "0.5872703", "0.5872205", "0.586788", "0.5864166", "0.5834993", "0.5813738", "0.5810685", "0.5810436", "0.5807581", "0.5797275", "0.5796356", "0.5796356", "0.5793937", "0.5792347", "0.5791955", "0.5784558", "0.57742053", "0.5772707", "0.577249", "0.57667065", "0.5765949", "0.5757899", "0.57558924", "0.57500887", "0.5746534", "0.57403475", "0.57276136", "0.572743", "0.57244194", "0.57188314", "0.5701578", "0.56947255", "0.5680592", "0.5668955", "0.56584996", "0.56547815", "0.5650757", "0.56476563", "0.5645083", "0.56396353", "0.5634717", "0.56341386", "0.56339103", "0.56283", "0.5623937", "0.56224793", "0.5620089", "0.5599491", "0.559834", "0.5587319", "0.55799866", "0.55797493" ]
0.8238044
0
getReportByIdAndDate(,)method takes employeeId , attendanceDate as a inputs and display particular employee working details on given date if it is worked on this date.
@RequestMapping(value = "/getReportByIdAndDate", method = RequestMethod.POST) public @ResponseBody String getReportByIdAndDate(@RequestParam("employeeId") int employeeId, @RequestParam("attendanceDate") String attendanceDate, HttpServletRequest request) { logger.info("inside ReportGenerationController getReportByIdAndDate()"); return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId, new Date(Long.valueOf(attendanceDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "@Override\n\tpublic Optional<LineReport> findReportbyId(int date) {\n\t\treturn null;\n\t}", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "@GetMapping(\"/appointments/date/{id}/{date}\")\n public List<Appointment> getAppointmentByConsultantAndDate(@PathVariable(\"id\")Long id,@PathVariable(\"date\") @DateTimeFormat(iso= DateTimeFormat.ISO.DATE) LocalDate date) {\n return (appointmentService.findAppsByConsultantAndDate(id,date));\n }", "public TimeSheet showfilledTimeSheet(Integer employeeId, Integer projectId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n TimeSheet timeSheet = timeSheetRepository.getTimeSheet(employeeId, projectId, date);\n return timeSheet;\n }", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "@Override\n public String editAttendanceDetails(HrAttendanceDetailsTO hrAttendanceDetailsTO, String empId) throws ApplicationException {\n long begin = System.nanoTime();\n String message = \"false\";\n int count = 0, compCode = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getCompCode();\n String month = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenMonth(), authBy = hrAttendanceDetailsTO.getAuthBy(), enteredBy = hrAttendanceDetailsTO.getEnteredBy();\n int workingDays = hrAttendanceDetailsTO.getWorkingDays(), presentDays = hrAttendanceDetailsTO.getPresentDays(), absentDays = hrAttendanceDetailsTO.getAbsentDays(),\n attenYear = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenYear();\n double dedDays = hrAttendanceDetailsTO.getDeductDays();\n long overTime = hrAttendanceDetailsTO.getOverTimePeriod();\n HrAttendanceDetailsDAO hrAttendanceDetailsDAO = new HrAttendanceDetailsDAO(em);\n HrPersonnelDetailsDAO hrPersonnelDAO = new HrPersonnelDetailsDAO(em);\n UserTransaction ut = context.getUserTransaction();\n try {\n ut.begin();\n HrPersonnelDetails hrPersonnelDetails = hrPersonnelDAO.findByEmpStatusAndEmpId(compCode, empId, 'Y');\n if (hrPersonnelDetails.getHrPersonnelDetailsPK() != null) {\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue());\n hrAttendanceDetailsPK.setAttenMonth(month);\n hrAttendanceDetailsPK.setAttenYear(attenYear);\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setPostFlag('N');\n List<HrAttendanceDetails> hrAttendanceList = hrAttendanceDetailsDAO.findAttendanceDetailsPostedForMonth(hrAttendanceDetails);\n if (!hrAttendanceList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceList) {\n hrAttenDetailsEntity.setAbsentDays(absentDays);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setWorkingDays(workingDays);\n hrAttenDetailsEntity.setPresentDays(presentDays);\n hrAttenDetailsEntity.setModDate(new Date());\n hrAttenDetailsEntity.setOverTimePeriod(overTime);\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setDeductDays(dedDays);\n hrAttendanceDetailsDAO.update(hrAttenDetailsEntity);\n count++;\n }\n } else {\n ut.rollback();\n return \"Attendance details already posted so can not be updated !\";\n }\n if (count != 0) {\n ut.commit();\n return \"Attendance details Successfully Updated for selected employee. \";\n }\n } else {\n ut.rollback();\n return \"There is no active employee in the company\";\n }\n } catch (DAOException e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n if (e.getExceptionCode().getExceptionMessage().equals(\"NoResultException\")) {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), ex);\n }\n } else {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), ex);\n }\n }\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n }\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for editAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return message;\n }", "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "@RequestMapping(value = \"/getReportByNameBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByNameDates(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByNameDates()\");\r\n\r\n return reportGenerationService.getReportByNameDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value=\"/selectedReport.pdf\",method=RequestMethod.POST)\n\tpublic ModelAndView getSelectedReport(HttpServletRequest request,Model model)throws Exception {\n\n\t\t\n\t\tString reportname = request.getParameter(\"report_selection\");\n\t\tString date=request.getParameter(\"date\");\n\t\tDate d1=DateUtil.convertDateFromStringtoDate(date);\n\t\tdate=DateUtil.convertInDashedFormat(d1);\n\t\t\n\t\tif(reportname.equals(\"apt_schedule\")){\n\t\t\tList<AppointmentMaster> appointMasterList = new ArrayList<>();\n\t\t\tappointMasterList = appointmentMasterService.selectAllAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(appointMasterList.size() > 0)\n\t\t\treturn new ModelAndView(\"appointmentMastersRpt\", \"appointmentList\", appointMasterList);\n\t\t\telse{\n\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMastersRpt\", \"appointmentList\", appointMasterList);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_reschedule\")){\n\t\t\tList<AppointmentMasterHistory> appointmentHistoryList = appointmentMasterHistoryService.selectAllAppointmentsHistory();\n\t\t\tList<AppointmentMaster> appointmentMasterList = new ArrayList<>(); \n\t\t\tappointmentMasterList = appointmentMasterService.selectAllAppointments(d1);\n\t\t\t\n\t\t\tList<RescheduledReport> reschduledReportList = new ArrayList<>() ;\n\t\t\treschduledReportList = rescheduledReportService.selectRescheduledAppointments(appointmentHistoryList,appointmentMasterList);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(reschduledReportList.size() >0)\n\t\t\t\treturn new ModelAndView(\"AppointmentrescheRpt\" , \"rescheduledReportList\" , reschduledReportList );\n\t\t\telse\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"AppointmentrescheRpt\" , \"rescheduledReportList\" , reschduledReportList );\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_cancelled\")){\n\t\t\tList<AppointmentMaster> cancelledAppointmentMasterList = new ArrayList<>();\n\t\t\tcancelledAppointmentMasterList =appointmentMasterService.selectcancelledAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(cancelledAppointmentMasterList.size() >0)\n\t\t\treturn new ModelAndView(\"appointmentMastercRpt\" , \"cancelledAppointmentMasterList\" , cancelledAppointmentMasterList);\n\t\t\telse{\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMastercRpt\" , \"cancelledAppointmentMasterList\" , cancelledAppointmentMasterList);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"waiting_time_rpt\")){\n\t\t\tList<WaitingTimeModel> listWaitingTime = new ArrayList<>();\n\t\t\t\tlistWaitingTime = \tappointmentMasterService.getWaitingTime(date);\n\t\t\t\tString message = \"There are no records available\";\n\t\t\t\tif(listWaitingTime.size() > 0)\n\t\t\t\t\treturn new ModelAndView(\"waitingTimeRpt\",\"listWaitingTime\",listWaitingTime);\n\t\t\t\telse {\n\t\t\t\t\tmodel.addAttribute(\"message\" , message);\n\t\t\t\t\treturn new ModelAndView(\"waitingTimeRpt\" , \"listWaitingTime\" ,listWaitingTime );\n\t\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"service_time_rpt\")){\n\t\t\t\n\t\t\tList<ServiceTimeModel> listServiceTime = new ArrayList<>();\n\t\t\tlistServiceTime =\tappointmentMasterService.getServiceTime(date);\n\t\t\tString message = \"There are no records available\";\n\t\t\tif(listServiceTime.size() > 0)\n\t\t\treturn new ModelAndView(\"serviceTimeRpt\",\"listServiceTime\",listServiceTime);\n\t\t\telse\n\t\t\t{\n\t\t\t\tmodel.addAttribute(\"message\" , message);\n\t\t\t\treturn new ModelAndView(\"serviceTimeRpt\" , \"listServiceTime\" , listServiceTime);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_late\")){\n\t\t\t\n\t\t\tList<AppointmentMaster> lateAppointmentMasterList = new ArrayList<>();\n\t\t\tlateAppointmentMasterList = appointmentMasterService.selectLateAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(lateAppointmentMasterList.size() >0)\n\t\t\treturn new ModelAndView(\"appointmentMasterlRpt\" , \"lateAppointmentMasterList\" , lateAppointmentMasterList);\n\t\t\telse\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\treturn new ModelAndView(\"appointmentMasterlRpt\" , \"lateAppointmentMasterList\" , lateAppointmentMasterList);\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_no_show\")){\n\t\t\t\n\t\t\tList<AppointmentMaster> noShowAppointmentMasterList = new ArrayList<>();\n\t\t\tnoShowAppointmentMasterList =appointmentMasterService.selectNoShowAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(noShowAppointmentMasterList.size() > 0)\n\t\t\treturn new ModelAndView(\"appointmentMasternsRpt\" , \"noShowAppointmentMasterList\" , noShowAppointmentMasterList);\n\t\t\telse{\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMasternsRpt\" , \"noShowAppointmentMasterList\" , noShowAppointmentMasterList);\n\t\t\t}\n\t\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "public void fetchEmployeeDetailsByEmployeeId(EmpCredit empCredit, HttpServletRequest request, String employeeId, boolean editFlag){\r\n\t\ttry {\r\n\t\t\tString empDetailQuery = \"SELECT HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME, NVL(SALGRADE_TYPE,' '),\"\r\n\t\t\t\t\t+ \" SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID, HRMS_SALARY_MISC.GROSS_AMT,\"\r\n\t\t\t\t\t+ \" DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '),\" \r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , NVL(TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" NVL(CADRE_NAME,' '), HRMS_EMP_OFFC.EMP_CADRE \" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_EMP_OFFC.EMP_RANK)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_EMP_OFFC.EMP_CENTER = HRMS_CENTER.CENTER_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_EMP_OFFC.EMP_DEPT )\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_EMP_OFFC.EMP_CADRE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_EMP_OFFC.EMP_SAL_GRADE=HRMS_SALGRADE_HDR.SALGRADE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\" \r\n\t\t\t\t\t+ \" WHERE HRMS_EMP_OFFC.EMP_ID=\"+employeeId;\r\n\t\t\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\t\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tshowEmp(empCredit, request, employeeId, editFlag);\r\n\t}", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "@RequestMapping(value = \"/i\", method = RequestMethod.GET)\n\tpublic ModelAndView doUniqueReport(ModelAndView modelAndView, @RequestParam(\"id\") final String reportId) {\n\n\t\tLOGGER.debug(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\t\tLOGGER.info(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tassessmentList = assessmentServices.findByReportId(reportId);\n\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\tLOGGER.info(\"assessmentList.get(0).getUserId() \" + assessmentList.get(0).getUserId());\n\t\tuserList = userServices.findByUserId(assessmentList.get(0).getUserId());\n\t\tLOGGER.info(\"@@@@@@@@@@@@@@userList \" + userList.toString());\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\treturn modelAndView;\n\t}", "@RequestMapping(value = PatientSvcApi.GETAPPOINTMENTDATE_PATH, method = RequestMethod.GET)\n\tpublic @ResponseBody Patient getAppointmentDate(\n\t\t\t@PathVariable(PatientSvcApi.MEDICALRECORDID) String medicalRecordId, HttpServletResponse response)\n\t{\n\t\tPatient p = operations.getAppointmentDate(medicalRecordId);\n\t\tif (p == null)\n\t\t{\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t}\n\t\treturn p;\n\t}", "@RequestMapping(value = \"/download/IPMReportPDF\", method = RequestMethod.GET)\n\tpublic ModelAndView doIndividualIPMReportPDF(ModelAndView modelAndView,\n\t\t\t@RequestParam(\"workmail\") final String email, @RequestParam(\"id\") final Integer assId) {\n\n\t\tLOGGER.debug(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\t\tLOGGER.info(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tuserList = userServices.findByWorkMail(email);\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tassessmentList = assessmentServices.findByUserIdAssId(user.getUserId(), assId);\n\t\t\t// suggestionList = suggestionServices.findByLvlId(1);\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\t\t\t// LOGGER.info(\"dataList \"+dataList.toString());\n\n\t\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\n\t\t\t// Retrieve our data from a custom data provider\n\t\t\t// Our data comes from a DAO layer\n\t\t\t// DemoDAO dataprovider = new DemoDAO();\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\t// Assign the datasource to an instance of JRDataSource\n\t\t\t// JRDataSource is the datasource that Jasper understands\n\t\t\t// This is basically a wrapper to Java's collection classes\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\t// In order to use Spring's built-in Jasper support,\n\t\t\t// We are required to pass our datasource as a map parameter\n\t\t\t// parameterMap is the Model of our application\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\t// parameterMap.put(\"username\", user.getFirstName()+\"\n\t\t\t// \"+user.getLastName());\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\t// pdfReport is the View of our application\n\t\t\t// This is declared inside the /WEB-INF/jasper-views.xml\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\t// Return the View and the Model combined\n\t\treturn modelAndView;\n\t}", "public Employeedetails getEmployeeDetailByName(String employeeId);", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "@Override\r\n\tpublic List<DoctorWiseAppointmentDetailsRes> fetchDoctorWiseAppointmentDetailsJson(DoctorIdReq doctorIdReq) {\r\n\t\tList<Map<String, Object>> doctorWiseAppointmentList = invoiceReportPDFDao.fetchDoctorWiseAppointmentDetails(\r\n\t\t\t\tnew InvoiceRequestBean().withOrgId(doctorIdReq.getOrgId()).withFromDate(doctorIdReq.getFromDate())\r\n\t\t\t\t\t\t.withToDate(doctorIdReq.getToDate()).withDoctorId((doctorIdReq.getDoctorId())));\r\n\t\tcheckListSize(doctorWiseAppointmentList);\r\n\t\tList<DoctorWiseAppointmentDetailsRes> deptWiseAppointmentDetailsRes = new ArrayList<>();\r\n\t\tfor (Map<String, Object> dataMap : doctorWiseAppointmentList) {\r\n\t\t\tDoctorWiseAppointmentDetailsRes bean = new DoctorWiseAppointmentDetailsRes();\r\n\t\t\tbean.setAppointmentDate(objectToString(dataMap.get(\"appointment_date\")));\r\n\t\t\tbean.setHosPatientId(objectToString(dataMap.get(\"hos_patient_id\")));\r\n\t\t\tbean.setPatientName(objectToString(dataMap.get(\"patient_name\")));\r\n\t\t\tbean.setMobileNo(objectToString(dataMap.get(\"mobile_no\")));\r\n\t\t\tbean.setAppointmentType(objectToString(dataMap.get(\"appointment_type\")));\r\n\t\t\tbean.setDoctorNm(objectToString(dataMap.get(\"doctor_nm\")));\r\n\t\t\tbean.setServiceNm(objectToString(dataMap.get(\"service_nm\")));\r\n\t\t\tdeptWiseAppointmentDetailsRes.add(bean);\r\n\r\n\t\t}\r\n\r\n\t\treturn deptWiseAppointmentDetailsRes;\r\n\t}", "public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }", "@Override\n\t\tpublic oep_ResponseInfo getcoursedetailsforreport(String facultyid,String roleid) {\n\t\t\t\n\t\t\tif(!facultyid.equals(\"0\")){\n\t\t\tif(roleid.equals(\"2\")){\n\t\t\t/*String coursedetailsquery=\"SELECT a.`course_id`,`course_name` FROM `course_master` a JOIN `subject_master` b ON a.`course_id`= b.`course_id`\"\n + \" JOIN `faculty_master` c ON c.`main_subject`= b.`sub_id` WHERE c.`faculty_id`=\"+facultyid;*/\n\t\t\t\t\n\t\t\t\tString coursedetailsquery=\"SELECT a.`course_id`,`course_name` FROM `course_master` a \"\n + \" JOIN `faculty_master` c ON c.`main_subject`= a.`course_id` WHERE c.`faculty_id`=\"+facultyid;\n\t\t\t\t\n\t\t\tlog.info(coursedetailsquery);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> coursedetailsList = jdbcTemplate.query(coursedetailsquery, new RowMapper() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"courseid\", rs.getString(\"course_id\"));\n\t\t\t\t\tmap.put(\"coursename\", rs.getString(\"course_name\"));\n\t\t\t\t\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(coursedetailsList);\n\t\t\t}else if(roleid.equals(\"4\")){\n\t\t\t\tString coursedetailsquery=\"SELECT c.`course_id`,c.`course_name` FROM `course_scheduling` a \"\n + \" JOIN `participants_registration_course_details` b ON \"\n + \" b.`course_id`= a.`cs_id` JOIN `course_master` c ON c.`course_id` = a.`program_name`\"\n + \" WHERE b.`participant_id`=\"+facultyid;\n\t\t\tlog.info(coursedetailsquery);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> coursedetailsList = jdbcTemplate.query(coursedetailsquery, new RowMapper() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"courseid\", rs.getString(\"course_id\"));\n\t\t\t\t\tmap.put(\"coursename\", rs.getString(\"course_name\"));\n\t\t\t\t\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(coursedetailsList);\n\t\t\t}else{\n\t/*String coursedetailsquery=\"SELECT a.`course_id`,`course_name` FROM `course_master` a JOIN `subject_master` b ON a.`course_id`= b.`course_id`\"\n + \" JOIN `faculty_master` c ON c.`main_subject`= b.`sub_id` WHERE c.`faculty_id`=\"+facultyid;*/\n\t\n\tString coursedetailsquery=\"SELECT a.`course_id`,`course_name` FROM `course_master` a \"\n + \" JOIN `faculty_master` c ON c.`main_subject`= a.`course_id` WHERE c.`faculty_id`=\"+facultyid;\n\t\n\t\tlog.info(coursedetailsquery);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object> coursedetailsList = jdbcTemplate.query(coursedetailsquery, new RowMapper() {\n\t\t\n\t\t@Override\n\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tmap.put(\"courseid\", rs.getString(\"course_id\"));\n\t\tmap.put(\"coursename\", rs.getString(\"course_name\"));\n\t\t\n\t\treturn map;\n\t\t\n\t\t}\n\t\t});\n\t\t\n\t\tresponse.setResponseType(\"S\");\n\t\tresponse.setResponseObj(coursedetailsList);\n\t\t}\n\t\t\t\n\t\t}else{\n\t\t\tString coursedetailsquery=\"SELECT `course_id`,`course_name` FROM `course_master` \";\n\t\t\t\n\t\tlog.info(coursedetailsquery);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object> coursedetailsList = jdbcTemplate.query(coursedetailsquery, new RowMapper() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tmap.put(\"courseid\", rs.getString(\"course_id\"));\n\t\t\t\tmap.put(\"coursename\", rs.getString(\"course_name\"));\n\t\t\t\n\t\t\t\treturn map;\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tresponse.setResponseType(\"S\");\n\t\tresponse.setResponseObj(coursedetailsList);\n\t\t}\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public interface DataSource {\n\n Report getSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo);\n\n}", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}", "public String getOneDayStatistic(String unitId, String groupId,\n\t\t\tString deptId, Date queryDate) {\n\t\tMap<String,String> allAttendance = new HashMap<String,String>();\n\t\tList<OfficeAttendanceGroup> groupList = officeAttendanceGroupService.listOfficeAttendanceGroupByUnitId(unitId);\n\t\tString[] groupIds = new String[groupList.size()];\n\t\tfor(int m=0;m<groupList.size();m++){\n\t\t\tgroupIds[m] = groupList.get(m).getId();\n\t\t}\n\t\tMap<String,List<OfficeAttendanceGroupUser>> groupUserMap = officeAttendanceGroupUserService.getOfficeAttendanceGroupUserMap(groupIds);\n\t\tList<OfficeAttendanceExcludeUser> excludeUsers = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n\t\tSet<String> excludeSet = new HashSet<String>();\n\t\tfor(OfficeAttendanceExcludeUser exclude:excludeUsers){\n\t\t\texcludeSet.add(exclude.getUserId());\n\t\t}\n\t\tif(StringUtils.isNotEmpty(groupId)){\n\t\t\tList<OfficeAttendanceGroupUser> groupUserList = groupUserMap.get(groupId);\n\t\t\tallAttendance = covertOfficeAttendanceInfoMap(groupUserList , excludeUsers);\n\t\t\t\n\t\t}else if(StringUtils.isNotEmpty(deptId)){\n\t\t\tList<User> deptUser = userService.getUsersByDeptId(deptId);\n\t\t\tallAttendance = covertUserMap(deptUser,excludeUsers);\n\t\t}else{\n\t\t\tList<User> unitUser = userService.getUserListByUnitId(unitId, null, User.TEACHER_LOGIN, null);\n\t\t\tallAttendance = covertUserMap(unitUser ,excludeUsers);\n\t\t}\n\t\tSet<String> userSet = allAttendance.keySet();\n\t\tint i =0;\n\t\tString[] userIds = new String[userSet.size()];\n\t\tfor(String s:userSet){\n\t\t\tuserIds[i++] = s;\n\t\t}\n\t\t\n\t\tJSONObject json = new JSONObject();\n//\t\tJSONArray jsonArr = new JSONArray();\n//\t\tJSONObject json2 = null;\n\t\tString[] attendancename = new String[11];\n\t\tInteger[] attendanceNum = new Integer[11];\n//\t\t取该单位下 迟到早退List\n\t\tList<OfficeAttendanceInfo> later = listOfficeAttendanceInfoByDateAndState(unitId, null,null,AttendanceConstants.ATTENDANCE_CLOCK_STATE_1, queryDate);\n\t\tList<OfficeAttendanceInfo> leaveEarly = listOfficeAttendanceInfoByDateAndState(unitId,null,null, AttendanceConstants.ATTENDANCE_CLOCK_STATE_2, queryDate);\n\n\t\tint laterSum = 0;\n\t\tint leaveEarlySum =0;\n\t\tlaterSum = sumLeaveOrLater(allAttendance,later);\n\t\tleaveEarlySum = sumLeaveOrLater(allAttendance,leaveEarly);\n\n\t\tattendancename[0] = \"迟到人数\";\n\t\tattendanceNum[0] = laterSum;\n\t\t\n\n\t\tattendancename[1] = \"早退人数\";\n\t\tattendanceNum[1] = leaveEarlySum;\n\t\tMap<String,String> costomAttendance = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_DEFAULT, queryDate, unitId,null,null);\n\t\tMap<String,String> outWork = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_3, queryDate, unitId,null,null);\n\t\t\n\t\n\t\tint customSum=0;\n\t\tint outWorkSum=0;\n\t\tcustomSum =sumPeople(allAttendance,costomAttendance);\n\t\toutWorkSum =sumPeople(allAttendance,outWork);\n\n\t\tattendancename[2] = \"正常考勤人数\";\n\t\tattendanceNum[2] = customSum;\n\n\t\tattendancename[3] = \"外勤考勤人数\";\n\t\tattendanceNum[3] = outWorkSum;\n\t\n//\t\tList<Teacher> teacherList = teacherService.getTeachers(unitId);\n//\t\tList<OfficeAttendanceExcludeUser> notAddAttendance = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n//\t\tint sumNotAddAttencedance = sumNotAttendance(allAttendance,notAddAttendance,flag);\n//\t\t\n//\t\tint attendanceNum = allAttendance.size() - sumNotAddAttencedance;\n\n\t\tattendancename[5] = \"考勤人数\";\n\t\tattendanceNum[5] = allAttendance.size();\n\t\n\t\tSet<String> applySet = new HashSet<String>();\n\t\tList<OfficeTeacherLeave> leaveList = officeTeacherLeaveService.getQueryList(unitId, userIds, queryDate, queryDate, null, true);\n\t\tint leaveSum =0;\n\t\tfor(OfficeTeacherLeave l:leaveList){\n\t\t\tif(userSet.contains(l.getApplyUserId())){\n\t\t\t\tapplySet.add(l.getApplyUserId());\n\t\t\t\tleaveSum++;\n\t\t\t}\n\t\t}\n\n\t\tattendancename[7] = \"请假人数\";\n\t\t\n\t\tattendanceNum[7] = leaveSum;\n\t\tList<OfficeGoOut> gooutList = officeGoOutService.getListByStarttimeAndEndtime(queryDate, DateUtils.addDay(queryDate, 1), userIds);\n\t\tint goOutSum=0;\n\t\tfor(OfficeGoOut g:gooutList){\n\t\t\tif(userSet.contains(g.getApplyUserId())){\n\t\t\t\tapplySet.add(g.getApplyUserId());\n\t\t\t\tgoOutSum++;\n\t\t\t}\n\t\t}\n\t\tattendancename[8] = \"外出人数\";\n\t\tattendanceNum[8] = goOutSum;\n\t\tList<OfficeBusinessTrip> tripList = officeBusinessTripService.getListByStarttimeAndEndtime(queryDate, queryDate, userIds);\n\t\t\n\t\tMap<String,Set<String>> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, DateUtils.addDay(queryDate, 1));\n\t\tint tripSum = 0;\n\t\tfor(OfficeBusinessTrip t:tripList){\n\t\t\tif(userSet.contains(t.getApplyUserId())){\n\t\t\t\tapplySet.add(t.getApplyUserId());\n\t\t\t\ttripSum++;\n\t\t\t}\n\t\t}\n\n//\t\tMap<String,Integer> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, queryDate);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tint jtGoOutNum = jtGoOutMap.get(format.format(queryDate));\n\t\tattendancename[9] = \"出差人数\";\n\t\tattendanceNum[9] = tripSum;\n\t\tSet<String> jtSet = jtGoOutMap.get(format.format(queryDate));\n\t\tif(jtSet == null) jtSet = new HashSet<String>();\n\t\tattendancename[10] = \"集体外出人数\";\n\t\tattendanceNum[10] = jtSet.size();\n\t\tapplySet.addAll(jtSet);\n\t\t\n\t\tMap<String,String> missCard = getMissingCard(queryDate, unitId, AttendanceConstants.ATTENDANCE_CLOCK_STATE_98 ,null,null);\n\t\tMap<String,String> moreOneCard = getMissingCard(queryDate, unitId, null,null,null);\n\t\t\n\t\t\n\t\tSet<String> missCardSet = missCard.keySet();\n\t\t\n\t\tSet<String> oneMoreCardSet = moreOneCard.keySet();\n\t\tDateInfo info = dateInfoService.getDateInfo(unitId, queryDate);\n\t\tattendancename[4] = \"缺卡人数\";\n\t\tattendancename[6] = \"旷工人数\";\n\t\tif(info != null && \"N\".equals(info.getIsfeast())){\n\t\t\t\n\t\t\t//得到符合条件的 缺卡人数\n\t\t\tmissCardSet.retainAll(userSet);\n\t\t\tSet<String> missRetain = new HashSet<String>(missCardSet);\n\t\t\tmissRetain.retainAll(applySet);\n\t\t\tmissCardSet.removeAll(missRetain);\n\t\t\t\n\t\t\tattendanceNum[4] = missCardSet.size();\n\t\t\t\n\t\t\tapplySet.addAll(oneMoreCardSet);\n\t\t\tint allSum = userSet.size();\n\t\t\tuserSet.retainAll(applySet);\n\t\t\tint notWorkNum = allSum - userSet.size();\n\t\t\tattendanceNum[6] = notWorkNum;\n\t\t}else{\n\t\t\tattendanceNum[4] = 0;\n\t\t\tattendanceNum[6] = 0;\n\t\t}\n//\t\tjson.put(\"yInterval\",max_ds);\n\t\tjson.put(\"legendData\", new String[]{\"人数\"});\n\t\tjson.put(\"xAxisData\", attendancename);\n\t\tjson.put(\"loadingData\", new Integer[][]{attendanceNum});\n\t\treturn json.toString();\n\t}", "@RequestMapping(value = \"/getTodayReport\", method = RequestMethod.GET)\r\n public @ResponseBody String getDayWiseReport() {\r\n logger.info(\"in ReportGenerationController getDayWiseReport()\");\r\n\r\n String reportDetails = reportGenerationService.getTodayReport();\r\n\r\n return reportDetails;\r\n }", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "public abstract void generateReport(Date from, Date to, String objectCode);", "@RequestMapping(value = \"/getreturned\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\ttry{\n\t\t\tEmployee employee=(Employee) userService.get(Integer.parseInt(httpSession.getAttribute(\"user\").toString()));\n\t\t\tBranchOffice branch=(employee.getBranchOffice());\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(branch, date));\n\t\t}catch(Exception e){\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\t\n\t\t}\n\t}", "@Override\n\tpublic List<AppointmentDto> getAppointmentByUserIdForADate(int userId, Date date) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_BY_USERID_ON_PARTICULAR_DATE, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"),rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, userId, date );\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "public String showTodayOrderPassengerDetails(){\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\t//logger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\t//logger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\n\n\t\t/*ReportData newReportData=flightOrderDao.getReportDetailsByRowId(selectedReportItem.getId());\n\t\tif(newReportData!=null){\n\t\t\tCurrentReportdata=newReportData;\n\t\t}*/\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(selectedReportItem.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(selectedReportItem.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\t\t}\n\t\ttry {\n\t\t\tReportData companyWalletHistory=flightOrderDao.getWalletAmountTxStatementHistoryByUserId(selectedReportItem.getUserId(),selectedReportItem.getOrderId());\n\t\t\tList<WalletAmountTranferHistory> newWalletHistoryList=new ArrayList<WalletAmountTranferHistory>();\n\t\t\tif(companyWalletHistory!=null && companyWalletHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\tfor(WalletAmountTranferHistory history:companyWalletHistory.getWalletAmountTranferHistory()){\n\t\t\t\t\tif(history.getUserId()==Integer.parseInt(selectedReportItem.getUserId())){\n\t\t\t\t\t\tnewWalletHistoryList.add(history);\n\t\t\t\t\t\tcompanyWalletHistory.setWalletAmountTranferHistory(newWalletHistoryList); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(companyWalletHistory!=null){\n\t\t\t\ttxHistory=companyWalletHistory;\n\t\t\t}\n\t\t\tif(flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId())!=null){\n\t\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId());\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SUCCESS;\n\t}", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "@RequestMapping(\"/getPdfBetweenTwoDate\")\n\tpublic ModelAndView pdfBydate(@RequestParam Long id,@RequestParam (name=\"astart\") String start,\n\t\t\t@RequestParam (name=\"aend\") String end)\n\t{\n\t ModelAndView mv= new ModelAndView(\"redirect:/userDetails\");\n\t\t LocalDate first=LocalDate.parse(start);\n\t\t LocalDate second=LocalDate.parse(end);\n\t\t long days= ChronoUnit.DAYS.between(first,second);\n\t\t if(days>1)\t appraisalService.setAppraisalByDate(id, first, second);\n\t\t else {\n\t\t\t mv.addObject(\"errorInApp\", true);\n\t\t\t error(id);\n\t\t }\n\t\t mv.addObject(\"randomApp\",true);\n\t\t mv.addObject(\"id\",id);\n\t\t mv.addObject(\"astart\",start.toString());\n\t\t mv.addObject(\"aend\",end.toString());\n\n\t\treturn mv;\n\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Path(\"appliedLeave/{empId}\")\r\n\t@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic AppliedLeaveDetails getAppliedLeaveDetails(@PathParam(\"empId\") String empId) {\r\n\t\tAppliedLeaveDetails AppliedLeaveDetails = new AppliedLeaveDetails();\r\n\t\tArrayList<AppliedLeaveDetails> appliedleave = new ArrayList<AppliedLeaveDetails>();\r\n\t\ttry {\r\n\t\t\tappliedleave = getAllAppliedLeaveDetails();\r\n\t\t\tfor (int i = 0; i < appliedleave.size(); i++) {\r\n\r\n\t\t\t\tif (appliedleave.get(i).getEmpId().equalsIgnoreCase(empId)) {\r\n\t\t\t\t\tAppliedLeaveDetails.setEmpId(empId);\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveDescription(appliedleave.get(i).getLeaveDescription());\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveType(appliedleave.get(i).getLeaveType());\r\n\t\t\t\t\tAppliedLeaveDetails.setStatus(appliedleave.get(i).getStatus());\r\n\t\t\t\t\tAppliedLeaveDetails.setFrom(appliedleave.get(i).getFrom());\r\n\t\t\t\t\tAppliedLeaveDetails.setTo(appliedleave.get(i).getTo());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn AppliedLeaveDetails;\r\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getfacultyidforreport(String userid,String roleid) {\n\t\t\tif(roleid.equals(\"2\")){\n\t\t\tString facultyquery=\"SELECT * FROM `faculty_master` WHERE `userid`=\"+userid;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> facultyList = jdbcTemplate.query(facultyquery, new RowMapper() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"facultyid\", rs.getString(\"faculty_id\"));\n\t\t\t\t\tmap.put(\"facultyname\", rs.getString(\"faculty_firstname\"));\n\t\t\t\t\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(facultyList);\n\t\t\t}\n\t\t\telse if(roleid.equals(\"4\")){\n\t\t\t\tString participantquery=\"SELECT * FROM `participants` WHERE `user_id`=\"+userid;\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Object> facultyList = jdbcTemplate.query(participantquery, new RowMapper() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\t\tmap.put(\"facultyid\", rs.getString(\"participant_id\"));\n\t\t\t\t\t\tmap.put(\"facultyname\", rs.getString(\"username\"));\n\t\t\t\t\t\n\t\t\t\t\t\treturn map;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresponse.setResponseType(\"S\");\n\t\t\t\tresponse.setResponseObj(facultyList);\n\t\t\t}\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "@Override\n\tpublic List<Booking> getDetails(String empid) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where employeeId=\"+empid);\n\t\treturn query.list();\n\t}", "private void addToDailyReport(String day, double empHours, double empPay)\r\n\t{\r\n\t\t//reset singleDay just in case\r\n\t\tDailyHours singleDay = null;\r\n\t\t\r\n\t\t//call the findEntryByDate method to find the date\r\n\t\tsingleDay = findEntryByDate(day);\r\n\t\t\r\n\t\t//if the date is not found, create a new date object.\r\n\t\tif(singleDay == null)\r\n\t\t{\r\n\t\t\t//date not found, so create a new date object\r\n\t\t\tsingleDay = new DailyHours(day);\r\n\t\t\t\r\n\t\t\t//add the day to our inventory\r\n\t\t\tdailyHourLog.add(singleDay);\r\n\t\t}//end create new day \r\n\t\t\r\n\t\t//add the employee hours and pay to that day\r\n\t\tsingleDay.addHours(empHours);\r\n\t\tsingleDay.addPay(empPay,empHours);\r\n\t}", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "public String getEmployeeById(int id) {\n\t\t//logger.info(\"Inside get employee by id.... Now calling get employee by id\");\n\t\t\n\t\t//logger.log(Level.FINEST ,\"theEmployee value is:....................................\"+theEmployee);\n\t\ttry {\n\t\t\tEmployee theEmployee=getEmployeeService().getEmployeeByID(id);\n\t\t\tExternalContext externalContext= FacesContext.getCurrentInstance().getExternalContext();\n\t\t\tMap<String,Object> requestMap= externalContext.getRequestMap();\n\t\t\trequestMap.put(\"employeeBean\", theEmployee);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//logger.info(\"displaying the map................\"+requestMap);\n\t\treturn \"update\";\n\t}", "public ResultSet reviewDate(String datee, Long idd) throws Exception{\n\trs=DbConnect.getStatement().executeQuery(\"select * from share_details where comp_id=\"+idd+\" and DATEOFTRANS='\"+datee+\"'\");\r\n\treturn rs;\r\n}", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "@Override\n @Transactional\n public ReportView getHistoryForPatientId(UUID patientId) {\n User patient = Objects.requireNonNull(userRepository.findOne(patientId));\n Map<LocalDate, Boolean> history = new HashMap<>(7);\n\n for (int i = 0; i < 7; i++) {\n java.sql.Date date = new java.sql.Date(System.currentTimeMillis());\n date.setDate(date.getDate() - i);\n\n List<Assignment> missedAssignments = assignmentRepository.findIncompleteByPatientIdAndDate(patientId, date);\n history.put(date.toLocalDate(), missedAssignments.isEmpty());\n }\n\n ReportView reportView = new ReportView();\n reportView.setUser(patient.toView());\n reportView.setHistory(history);\n return reportView;\n }", "public String showPaymentOrderPassengerDetails(){\n\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\n\t\t//List<ReportData> allReportList=(List<ReportData>) sessionMap.get(\"userFlightReportData_list\");\n\t\t//agency data-----------------Start--------------------------\n\t\tUser userSessionObj=(User)sessionMap.get(\"User\");\n\t\tCompany companySessionObj=(Company)sessionMap.get(\"Company\");\n\t\t//List<ReportData> companyReportsList = flightOrderDao.getCompanyFlightReports(userSessionObj,companySessionObj);\\\n\t\tFlightReportsList\t= flightOrderDao.getCompanyFlightReports(userSessionObj,companySessionObj,null);\n\t\t//List<ReportData> companyReportsList = (List<ReportData>) sessionMap.get(\"companyReportsList\");\n\t\t//////logger.info(\"r.getId()---companyReportsList.size() -----\"+companyReportsList.size());\n\t\tfor(ReportData r:FlightReportsList){\n\t\t\t//////logger.info(\"r.getId()---\"+r.getId()+\"=====reportData.getId()\"+reportData.getId());\n\t\t\tif(r.getId().longValue() == CurrentReportdata.getId().longValue()){\n\t\t\t\tCurrentReportdata = r;\n\t\t\t\t//sessionMap.put(\"ReportData\",r);\n\t\t\t}\n\t\t}\n\n\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(CurrentReportdata.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(CurrentReportdata.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\n\t\t}\n\n\n\n\t\ttry {\n\n\t\t\ttxHistory = flightOrderDao.getWalletAmountTxStatementHistory(CurrentReportdata.getOrderId());\n\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(CurrentReportdata.getOrderId());\n\t\t\t/* if(txHistory.getWalletAmountTranferHistory().size()>0 && txHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\t //sessionMap.put(\"txHistory\", txHistory.getWalletAmountTranferHistory()); \n\t\t\t}\n\t\t\t else{\n\t\t\t\t //sessionMap.remove(\"txHistory\");\n\t\t\t }*/\n\t\t\t/* if(endUserTxHistory.size()>0 && endUserTxHistory!=null){\n\t\t\t //sessionMap.put(\"directUserTxHistory\", endUserTxHistory);\n\t\t\t}\n\t\t else{\n\t\t\t\t// sessionMap.remove(\"directUserTxHistory\");\n\t\t\t }*/\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\treturn SUCCESS;\n\n\t}", "@Override\n public Set<Badminton> dateDetails(int personId, Date date) {\n /**\n * check the date is valid or not\n * start time will always less than end time and end time will always less than or equal to current time\n * date will always less than or equal to current date\n */\n validator.validDate(date);\n try {\n ResultSet resultSet = badmintonDao.dateDetails(personId,date);\n Set<Badminton> setDetails = new HashSet<Badminton>();\n\n /**\n * insert all details in set and return\n */\n while (resultSet.next()) {\n Timing timing = new Timing(resultSet.getTime(\"startTime\"), resultSet.getTime(\"endTime\"),\n resultSet.getDate(\"day\"));\n\n Badminton badminton = new Badminton(resultSet.getInt(\"badminton_id\"), resultSet.getInt(\"personid\"),\n timing, resultSet.getInt(\"numPlayers\"), resultSet.getString(\"result\"));\n\n setDetails.add(badminton);\n }\n return setDetails;\n }catch (SQLException e) {\n throw new ApplicationException(500,\"Sorry, some internal error comes in badminton service\");\n }\n }", "ApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;", "public interface ReportService {\n /**\n * Some constants using in reports\n */\n String[] dashboardSheetNames = {\"Level And Quantity\", \"Level And Trainers\", \"Training And Quantity\"};\n String[] levelAndQuantityColumns = {\"Level\", \"Course Name\", \"Group Name\"};\n String[] levelAndTrainersColumns = {\"Trainer\", \"Course Name and Level\"};\n String[] trainingAndQuantityColumns = {\"Course Name\", \"Group Name\", \"Amount of Employees\"};\n String groupsNotFound = \"No groups to report\";\n String levelException = \"Can't find Level for Id \";\n\n /**\n * @return full attendance report of all courses and their groups\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel() throws IOException;\n\n /**\n * @return attendance report of all groups of current user\n * @param user user object, to get user information\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(User user) throws IOException;\n\n /**\n * @return attendance report of particular group\n * @param groupId id, to find group in database\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(Integer groupId) throws IOException;\n\n /**\n * @return dashboard report of all courses, their groups, and users\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getDashboardExcel() throws IOException;\n}", "@RequestMapping(value = \"/getEmployeesReportBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeesReportBetweenDates(\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getEmployeesReportBetweenDates()\");\r\n\r\n return reportGenerationService.getEmployeesReportBetweenDates(new Date(Long.valueOf(fromDate)),\r\n new Date(Long.valueOf(toDate)));\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 interface DailyReportService {\n /**\n * 通过时间获取日报表\n * @param dailyRportQueryDTO\n * @return\n */\n List<DailyReportDO> getDailyReportByTime(DailyRportQueryDTO dailyRportQueryDTO);\n}", "public String getEmployeeDetails(int employeeId) {\n\treturn employeeService.getEmployeeDetails(employeeId).toString(); \n }", "@PostMapping(\"/monthlySalaryReport\")\n public String getmonthlySalaryReport(ModelMap model, @RequestParam @DateTimeFormat(pattern = \"YYYY-MM-dd\") Date salaryDate) {\n try {\n\n List<MonthlySalaryReport> monthlySalaryList = monthlyReportService.getMonthlySalaryReport(salaryDate);\n\n if (monthlySalaryList.isEmpty()) {\n model.addAttribute(\"recordMessage\", \"No Records Found\");\n return \"html/monthlySalaryReport\";\n }\n model.addAttribute(\"monthlySalaryList\", monthlySalaryList);\n return \"html/fragment/monthlySalaryReportResult\";\n // return \"html/exceltest\";\n } catch (Exception e) {\n model.addAttribute(\"Problem occured due to technical problem\");\n LOG.error(\"Problem occured due to technical problem\", e);\n return \"html/monthlySalaryReport\";\n }\n }", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t\tpublic void showReport(String str) throws JRException, ClassNotFoundException, SQLException {\n\t\t\tlocation = \"\\\\\\\\192.168.100.245\\\\MU\\\\Blank_Letter_xls.jrxml\";\n\t String reportSrcFile = location;//\"C:\\\\Work\\\\Blank_Letter.jrxml\";\n\t \n\t // First, compile jrxml file.\n\t JasperReport jasperReport = JasperCompileManager.compileReport(reportSrcFile);\n\t jasperReport.setProperty(JRTextElement.PROPERTY_PRINT_KEEP_FULL_TEXT, \"true\");\n\t // Fields for report\n\t //HashMap<String, Object> parameters = new HashMap<String, Object>();\n\t \n\t //parameters.put(\"company\", \"MAROTHIA TECHS\");\n\t //parameters.put(\"receipt_no\", \"RE101\".toString());\n\t //parameters.put(\"name\", \"Khushboo\");\n\t //parameters.put(\"amount\", \"10000\");\n\t //parameters.put(\"receipt_for\", \"EMI Payment\");\n\t //parameters.put(\"date\", \"20-12-2016\");\n\t //parameters.put(\"contact\", \"98763178\".toString());\n\t @SuppressWarnings(\"rawtypes\")\n\t\t\tMap map = new HashMap();\n map.put(\"Id\", str);\n map.put(\"Tsk\", \"AP\"+str);\n\t \t \n\t JasperPrint print = JasperFillManager.fillReport(jasperReport, map, cn.ConToDb1());\n\t try {\n\t \tJasperPrintManager.printReport(print, false);\n\t \tscl._AlertDialog(\"Печать успешно завершена!\", \"Печать\");\n\t }\n\t catch (Exception e) {\n\t\t\t\tscl._AlertDialog(e.getMessage(), \"Ошибка печати!\");\n\t\t\t}\n\t // Make sure the output directory exists.\n//\t File outDir = new File(\"m:/08.USER/U.14.RG/jasperoutput\");\n//\t File outDir = new File(\"C:\\\\Report\\\\jasperoutput\");\n//\t outDir.mkdirs();\n\t \n//\t JRXlsExporter exporter = new JRXlsExporter();\n//\t exporter.setExporterInput(new SimpleExporterInput(print));\n//\t exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(\"m:/08.USER/U.14.RG/jasperoutput/Task_Report\"+conn_connector.USER_ID+\".xls\"));\n//export excel\t exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(\"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\"));\n \n//export excel exporter.exportReport();\n \n// Runtime runtime = Runtime.getRuntime();\n//export excel \ttry {\n//\t\t\t\truntime.exec(\"excel \" + \"m:/08.USER/U.14.RG/jasperoutput/Task_Report\"+conn_connector.USER_ID+\".xls\");\n//\t\t\t\truntime.exec(\"excel \" + \"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\");\n//export excel \t\tFile excelFile = new File(\"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\");\n//export excel \t\tmn._run_excel(excelFile);\n\t\t\t\t\n//export excel\t\t\t} catch (IOException e) {\n\t\t\t\t\n//export excel\t\t\t\te.printStackTrace();\n//export excel\t\t\t}\n \t//btn.setDisable(true);\n\t\t\t\n\t // Export to PDF.\n//\t JasperExportManager.exportReportToHtmlFile(print,\n//\t \"m:/08.USER/U.14.RG/jasperoutput/StyledTextReport\"+conn_connector.USER_ID+\".html\");\n//\t if (Desktop.isDesktopSupported()) {\n//\t try {\n//\t\t\t\t\tDesktop.getDesktop().browse(new URI(\"m:/08.USER/U.14.RG/jasperoutput/StyledTextReport\"+conn_connector.USER_ID+\".html\"));\n//\t\t\t\t} catch (IOException | URISyntaxException e) {\n//\t\t\t\t\t\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t }\n\t //JRViewer viewer = new JRViewer(print);\n\t //viewer.setOpaque(true);\n\t //viewer.setVisible(true);\n\t //this.add(viewer);\n\t ///this.setSize(700, 500);\n\t //this.setVisible(true);\n//\t System.out.print(\"Done!\");\n\t \n\t }", "AttendanceDTO get(long id);", "ReportJournal findByUserAndIssueDate(User user, Date issueDate);", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "@Override\n\tpublic EmployeeBean getEmployee(int employeeId) {\n\t\tLOGGER.info(\"starts getEmployee method\");\n\t\tLOGGER.info(\"Ends getEmployee method\");\n\t\treturn adminEmployeeDao.getEmployee(employeeId);\n\t}", "public ActionForward LocomotorReport(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n\r\n String ur = \"/LocomotorReport.do?LocomotorReport=LocomotorReport\";\r\n request.setAttribute(\"ur\", ur);\r\n\r\n String target = \"success\";\r\n String subquery = null, columns = null;\r\n String districtId = null;\r\n String mandalId = null;\r\n String villageId = null;\r\n String rationcard = null, agee = null;\r\n DataSource ds = null;\r\n FunctionalReportDAO funDao = new FunctionalReportDAO();\r\n int cou = 1;\r\n String edu = null, em = null, ma = null, caste = null, religion = null, disability = null, gender = null, total = null, pmarige = null;\r\n FunctionalNeedReportForm functionalNeedForm = (FunctionalNeedReportForm) form;\r\n FunctionalNeedReportDAO dao = new FunctionalNeedReportDAO();\r\n ArrayList habitationlist = new ArrayList();\r\n try {\r\n String fdate = (String) request.getParameter(\"fromdate\");\r\n String tdate = (String) request.getParameter(\"todate\");\r\n functionalNeedForm.setFromdate(fdate);\r\n functionalNeedForm.setTodate(tdate);\r\n Iterator itr = null;\r\n ds = getDataSource(request);\r\n if (ds == null || \"null\".equals(ds)) {\r\n ds = JNDIDataSource.getConnection();\r\n }\r\n FunctionalNeedReportService functionalNeedService =\r\n FunctionalNeedServiceFactory.getFunctionalNeedServiceImpl();\r\n TerritoryService territoryService = TerritoryServiceFactory.getTerritoryServiceImpl();\r\n ArrayList ohWiseDetails = new ArrayList();\r\n ArrayList empWiseSingleDetails = new ArrayList();\r\n ArrayList districtList = new ArrayList();\r\n ArrayList mandallist = new ArrayList();\r\n ArrayList villagelist = new ArrayList();\r\n ReportDAO rdao = new ReportDAO();\r\n\r\n // Get District list\r\n\r\n districtList = territoryService.getDistricts(ds);\r\n if (districtList != null && districtList.size() > 0) {\r\n functionalNeedForm.setDistrictList(districtList);\r\n }\r\n\r\n if (request.getParameter(\"district_id\") != null && !request.getParameter(\"district_id\").equals(\"\")) {\r\n mandallist = functionalNeedService.getMandals(ds, request.getParameter(\"district_id\"), functionalNeedForm.getUrban_id());\r\n functionalNeedForm.setMandallist(mandallist);\r\n }\r\n if (request.getParameter(\"mandal_id\") != null && !request.getParameter(\"mandal_id\").equals(\"\")) {\r\n habitationlist = functionalNeedService.getVillageAll(ds, request.getParameter(\"district_id\"), request.getParameter(\"mandal_id\"));\r\n functionalNeedForm.setVillagelist(habitationlist);\r\n }\r\n if (request.getParameter(\"district_id\") == null) {\r\n districtId = \"0\";\r\n } else {\r\n districtId = request.getParameter(\"district_id\");\r\n }\r\n if (request.getParameter(\"mandal_id\") == null) {\r\n mandalId = \"0\";\r\n } else {\r\n mandalId = request.getParameter(\"mandal_id\");\r\n }\r\n if (request.getParameter(\"village_id\") == null) {\r\n villageId = \"0\";\r\n } else {\r\n villageId = request.getParameter(\"village_id\");\r\n }\r\n if (\"getDetails\".equalsIgnoreCase(request.getParameter(\"mode\"))) {\r\n\r\n String name = dao.getDistMandVilHabname(ds, districtId, mandalId, villageId, \"0\");\r\n request.setAttribute(\"names\", name);\r\n // ohWiseDetails=rdao.getVisiualDisabilityCount(ds, districtId, mandalId, villageId,fdate,tdate);\r\n ohWiseDetails = funDao.getDisabilityCount(ds, districtId, mandalId, villageId, fdate, tdate, \"1\");\r\n if (ohWiseDetails.size() == 0) {\r\n request.setAttribute(\"msg\", \"No Data Found\");\r\n } else {\r\n\r\n request.setAttribute(\"ohWiseDetails\", ohWiseDetails);\r\n }\r\n\r\n } else if (\"getempWiseReport\".equalsIgnoreCase(request.getParameter(\"status\"))) {\r\n String dist = null;\r\n String mandal = null;\r\n String village = null;\r\n String vi = request.getParameter(\"villagesId\");\r\n if (request.getParameter(\"districtId\") == null) {\r\n dist = \"0\";\r\n } else {\r\n dist = request.getParameter(\"districtId\");\r\n }\r\n if (request.getParameter(\"mandalId\") == null) {\r\n mandal = \"0\";\r\n } else {\r\n mandal = request.getParameter(\"mandalId\");\r\n }\r\n if (!mandal.equals(\"0\") && !dist.equals(\"0\")) {\r\n if (request.getParameter(\"villagesId\") == null) {\r\n village = \"0\";\r\n } else {\r\n village = request.getParameter(\"villagesId\");\r\n }\r\n } else {\r\n village = \"0\";\r\n }\r\n\r\n String name = dao.getDistMandVilHabname(ds, dist, mandal, village, \"0\");\r\n request.setAttribute(\"names\", name);\r\n // ohWiseDetails=rdao.getVisiualDisabilityCount(ds, dist, mandal, village,fdate,tdate);\r\n ohWiseDetails = funDao.getDisabilityCount(ds, dist, mandal, village, fdate, tdate, \"1\");\r\n if (ohWiseDetails.size() == 0) {\r\n\r\n request.setAttribute(\"msg\", \"No Data Found\");\r\n\r\n } else {\r\n request.setAttribute(\"ohWiseDetails\", ohWiseDetails);\r\n\r\n }\r\n target = \"excel\";\r\n\r\n } else if (\"getempWiseReportPrint\".equalsIgnoreCase(request.getParameter(\"status\"))) {\r\n String dist = null;\r\n String mandal = null;\r\n String village = null;\r\n String cast = null;\r\n String hab = null;\r\n if (request.getParameter(\"hid\") == null) {\r\n hab = \"0\";\r\n } else {\r\n hab = request.getParameter(\"hid\");\r\n }\r\n\r\n if (request.getParameter(\"districtId\") == null) {\r\n dist = \"0\";\r\n } else {\r\n dist = request.getParameter(\"districtId\");\r\n }\r\n if (request.getParameter(\"mandalId\") == null) {\r\n mandal = \"0\";\r\n } else {\r\n mandal = request.getParameter(\"mandalId\");\r\n }\r\n if (!mandal.equals(\"0\") && !dist.equals(\"0\")) {\r\n if (request.getParameter(\"villagesId\") == null) {\r\n village = \"0\";\r\n } else {\r\n village = request.getParameter(\"villagesId\");\r\n }\r\n } else {\r\n village = \"0\";\r\n }\r\n String name = dao.getDistMandVilHabname(ds, dist, mandal, village, \"0\");\r\n request.setAttribute(\"names\", name);\r\n ohWiseDetails = funDao.getDisabilityCount(ds, dist, mandal, village, fdate, tdate, \"1\");\r\n // ohWiseDetails=rdao.getVisiualDisabilityCount(ds, dist, mandal, village,fdate,tdate);\r\n if (ohWiseDetails.size() == 0) {\r\n request.setAttribute(\"msg\", \"No Data Found\");\r\n } else {\r\n request.setAttribute(\"ohWiseDetails\", ohWiseDetails);\r\n }\r\n target = \"print\";\r\n } else if (\"getDetails\".equalsIgnoreCase(request.getParameter(\"details\"))) {\r\n String dist = null;\r\n String mandal = null;\r\n String village = null;\r\n String refId = null;\r\n if (request.getParameter(\"dID\") == null) {\r\n dist = \"0\";\r\n } else {\r\n dist = request.getParameter(\"dID\");\r\n }\r\n if (request.getParameter(\"mID\") == null || request.getParameter(\"mID\") == \"\") {\r\n mandal = \"0\";\r\n } else {\r\n mandal = request.getParameter(\"mID\");\r\n }\r\n if (!mandal.equals(\"0\") && !dist.equals(\"0\")) {\r\n if (request.getParameter(\"vID\") == null || request.getParameter(\"vID\") == \"\") {\r\n village = \"0\";\r\n } else {\r\n village = request.getParameter(\"vID\");\r\n }\r\n } else {\r\n village = \"0\";\r\n }\r\n\r\n String hab = null;\r\n if (request.getParameter(\"hid\") == null || request.getParameter(\"hid\") == \"\") {\r\n hab = \"0\";\r\n } else {\r\n hab = request.getParameter(\"hid\");\r\n }\r\n String name = dao.getDistMandVilHabname(ds, dist, mandal, village, \"0\");\r\n request.setAttribute(\"names\", name);\r\n subquery = (String) request.getParameter(\"tablee\");\r\n columns = (String) request.getParameter(\"colu\");\r\n String selectmethod = request.getParameter(\"query\");\r\n String co = columns, type = null;\r\n type = (String) request.getParameter(\"type\");\r\n request.setAttribute(\"type\", type);\r\n co = co.replace(\"'\", \"%27\");\r\n co = co.replace(\"(\", \"%28\");\r\n co = co.replace(\")\", \"%29\");\r\n co = co.replace(\"+\", \"%2B\");\r\n co = co.replace(\",\", \"%2C\");\r\n//co=co.replace(\"%\", \"%25\");\r\n co = co.replace(\"%%\", \"%25%\");\r\n request.setAttribute(\"tablee\", subquery);\r\n request.setAttribute(\"colu\", co);\r\n request.setAttribute(\"query\", selectmethod);\r\n if (selectmethod != null && selectmethod.equalsIgnoreCase(\"query\")) {\r\n ohWiseDetails = dao.getPersonalDetailsAllQuery(ds, dist, mandal, village, hab, fdate, tdate, \"1\", subquery, columns);\r\n } else {\r\n ohWiseDetails = dao.getPersonalDetailsAll(ds, dist, mandal, village, hab, fdate, tdate, \"1\", subquery, columns);\r\n }\r\n request.setAttribute(\"ohWiseDetails\", ohWiseDetails);\r\n if (ohWiseDetails.size() == 0) {\r\n request.setAttribute(\"msg\", \"No Data \");\r\n }\r\n target = \"personal\";\r\n } else if (\"getempDetailsAction\".equalsIgnoreCase(request.getParameter(\"empStatus\"))) {\r\n String dist = null;\r\n String mandal = null;\r\n String village = null;\r\n String refId = null;\r\n if (request.getParameter(\"dID\") == null) {\r\n dist = \"0\";\r\n } else {\r\n dist = request.getParameter(\"dID\");\r\n }\r\n if (request.getParameter(\"mID\") == null || request.getParameter(\"mID\") == \"\") {\r\n mandal = \"0\";\r\n } else {\r\n mandal = request.getParameter(\"mID\");\r\n }\r\n if (!mandal.equals(\"0\") && !dist.equals(\"0\")) {\r\n if (request.getParameter(\"vID\") == null || request.getParameter(\"vID\") == \"\") {\r\n village = \"0\";\r\n } else {\r\n village = request.getParameter(\"vID\");\r\n }\r\n } else {\r\n village = \"0\";\r\n }\r\n\r\n String hab = null;\r\n if (request.getParameter(\"hid\") == null || request.getParameter(\"hid\") == \"\") {\r\n hab = \"0\";\r\n } else {\r\n hab = request.getParameter(\"hid\");\r\n }\r\n String name = dao.getDistMandVilHabname(ds, dist, mandal, village, \"0\");\r\n request.setAttribute(\"names\", name);\r\n subquery = (String) request.getParameter(\"tablee\");\r\n columns = (String) request.getParameter(\"colu\");\r\n String selectmethod = request.getParameter(\"query\");\r\n if (selectmethod != null && selectmethod.equalsIgnoreCase(\"query\")) {\r\n ohWiseDetails = dao.getPersonalDetailsAllQuery(ds, dist, mandal, village, hab, fdate, tdate, \"1\", subquery, columns);\r\n } else {\r\n\r\n ohWiseDetails = dao.getPersonalDetailsAll(ds, dist, mandal, village, hab, fdate, tdate, \"1\", subquery, columns);\r\n }\r\n request.setAttribute(\"ohWiseDetails\", ohWiseDetails);\r\n target = \"EmpWisePersonalDetailsExcel\";\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return mapping.findForward(target);\r\n }", "public Result getStudyReport(String identifier, String startDateString, String endDateString) {\n UserSession session = getAuthenticatedSession();\n \n LocalDate startDate = getLocalDateOrDefault(startDateString, null);\n LocalDate endDate = getLocalDateOrDefault(endDateString, null);\n \n DateRangeResourceList<? extends ReportData> results = reportService\n .getStudyReport(session.getStudyIdentifier(), identifier, startDate, endDate);\n \n return okResult(results);\n }", "public String showConfirmOrderPassengerDetails(){\n\n\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\n\t\t//List<ReportData> allReportList=(List<ReportData>) sessionMap.get(\"userFlightReportData_list\");\n\t\t//agency data-----------------Start--------------------------\n\t\tUser userSessionObj=(User)sessionMap.get(\"User\");\n\t\tCompany companySessionObj=(Company)sessionMap.get(\"Company\");\n\t\t//List<ReportData> companyReportsList = flightOrderDao.getCompanyFlightReports(userSessionObj,companySessionObj);\\\n\t\tFlightReportsList\t= flightOrderDao.getCompanyFlightReports(userSessionObj,companySessionObj, null);\n\t\t//List<ReportData> companyReportsList = (List<ReportData>) sessionMap.get(\"companyReportsList\");\n\t\t//////logger.info(\"r.getId()---companyReportsList.size() -----\"+companyReportsList.size());\n\t\tfor(ReportData r:FlightReportsList){\n\t\t\t//////logger.info(\"r.getId()---\"+r.getId()+\"=====reportData.getId()\"+reportData.getId());\n\t\t\tif(r.getId().longValue() == CurrentReportdata.getId().longValue()){\n\t\t\t\tCurrentReportdata = r;\n\t\t\t\t//sessionMap.put(\"ReportData\",r);\n\t\t\t}\n\t\t}\n\n\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(CurrentReportdata.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(CurrentReportdata.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\n\t\t}\n\n\n\n\t\ttry {\n\n\t\t\ttxHistory = flightOrderDao.getWalletAmountTxStatementHistory(CurrentReportdata.getOrderId());\n\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(CurrentReportdata.getOrderId());\n\t\t\t/* if(txHistory.getWalletAmountTranferHistory().size()>0 && txHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\t //sessionMap.put(\"txHistory\", txHistory.getWalletAmountTranferHistory()); \n\t\t\t}\n\t\t\t else{\n\t\t\t\t //sessionMap.remove(\"txHistory\");\n\t\t\t }*/\n\t\t\t/* if(endUserTxHistory.size()>0 && endUserTxHistory!=null){\n\t\t\t //sessionMap.put(\"directUserTxHistory\", endUserTxHistory);\n\t\t\t}\n\t\t else{\n\t\t\t\t// sessionMap.remove(\"directUserTxHistory\");\n\t\t\t }*/\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\treturn SUCCESS;\n\n\t}", "@RequestMapping(\"/sortDate\")\n\tpublic ModelAndView statusBydate(@RequestParam Long id,@RequestParam (name=\"start\") String start,\n\t\t\t@RequestParam (name=\"end\") String end)\n\t{\n\t\t ModelAndView mv= new ModelAndView(\"userDetail\");\n\t\t LocalDate start1=LocalDate.parse(start);\n\t\t LocalDate end1=LocalDate.parse(end);\n\n\t\t long daysBetween= ChronoUnit.DAYS.between(start1,end1);\n\t\t if(daysBetween<2)\n\t\t {\n\t\t\t mv= new ModelAndView(\"redirect:/userDetails\");\n\t\t\t mv.addObject(\"errorInApp\",true);\n\t\t\t mv.addObject(\"id\",id);\n\t\t\t return mv;\n\t\t }\n\n\n\t\t Optional <User> user = userService.findByid(id);\n\t\t Optional <UserExtra> userEx = userService.findExtraByid(id);\n\t\t List<Git> git=gitServ.findGitOfUserBetween(userEx.get(),start1,end1);\n\t\t List<Hackathon> hack=hackServ.findHackathonOfUserBetween(userEx.get(),start1,end1);\n\n\t\t if(git.size()!=0)\n\t\t {\n\t\t\t Iterator<Git> it=git.iterator();\n\t\t\t while (it.hasNext())\n\t\t\t{\n\t\t\t\tGit object = (Git)it.next();\n\t\t\t\tLong mar= object.getMark();\n\t\t\t\t mv.addObject(\"git\",mar);\n\t\t\t }\n\t\t}\n\t\tif(hack.size()!=0)\n\t\t{\n\t\t\tIterator<Hackathon> i=hack.iterator();\n\t\t\twhile (i.hasNext())\n\t\t\t{\n\t\t\t\tHackathon object = (Hackathon)i.next();\n\t\t\t\tLong mark = object.getMark();\n\t\t\t\tmv.addObject(\"hack\",mark);\n\t\t\t }\n\t\t\t//mark.add(hack.get(m));\n\t\t\t//mv.addObject(\"hack\",mark);\n\t\t}\n\t\t List<Leave> leave = leaveSer.findLeavesOfUserBetween(userEx.get(),start1,end1);\n\t\t List<Leave> auth=new ArrayList<Leave>();\n\t\t List<Leave> unauth=new ArrayList<Leave>();\n\t\t for(int i=0;i<leave.size();i++)\n\t\t {\n\t\t\t if(leave.get(i).getType().equals(\"Authorized\"))\n\t\t\t {\n\t\t\t\t auth.add(leave.get(i));\n\t\t\t }\n\t\t\t if(leave.get(i).getType().equals(\"NonAuthorized\"))\n\t\t\t {\n\t\t\t\t unauth.add(leave.get(i));\n\t\t\t }\n\t\t }\n\t\t mv.addObject(\"auth\",auth);\n\t\t mv.addObject(\"unauth\",unauth);\n\n\t\t List<LateArrival> lateAll=lateServ.findAllLate(id);\n\t\t List<LateArrival> late = new ArrayList<LateArrival>();\n\t\t for(int i=0;i<lateAll.size();i++)\n\t\t {\n\t\t\t Instant insta =lateAll.get(i).getReachedTime();\n\t\t\t LocalDate localdate = insta.atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\tif(isWithinRange(localdate,start1,end1)==true)\n\t\t\t{\n\t\t\t\tlate.add(lateAll.get(i));\n\t\t\t}\n\t\t }\n\n\t\t List<LocalDateTime> time=new ArrayList<LocalDateTime>();\n\t\t for(int i=0;i<late.size();i++)\n\t\t {\n\t\t\t Instant in=late.get(i).getReachedTime();\n\t\t\t LocalDateTime t= LocalDateTime.ofInstant(in,ZoneId.systemDefault());\n\t\t\t time.add(t);\n\t\t }\n\n\t\t UserExtraDTO dto=getUser(user.get(),userEx.get());\n\t\t mv.addObject(\"employee\",dto);\n\t\t long days= ChronoUnit.DAYS.between(start1,end1);\n\t\t long total=(days*7);\n\n\t\t List<LateArrival> a=new ArrayList<LateArrival>();\n\t\t List<LateArrival> un=new ArrayList<LateArrival>();\n\t\t for(int i=0;i<late.size();i++)\n\t\t {\n\t\t\t if(late.get(i).getType().equals(\"Authorized\"))\n\t\t\t {\n\t\t\t\t a.add(late.get(i));\n\t\t\t }\n\t\t\t if(late.get(i).getType().equals(\"NonAuthorized\"))\n\t\t\t {\n\t\t\t\t un.add(late.get(i));\n\t\t\t }\n\t\t }\n\t\t if(!userEx.get().getImageContentType().isEmpty())\n\t\t {\n\t\t\t String image=Base64.getEncoder().encodeToString(userEx.get().getImage());\n\t\t\t mv.addObject(\"image\",image);\n\t\t }\n\t\t int l=((auth.size())+(unauth.size()));\n\t\t long absence=l*7;\n\t\t long workedHour=(total-absence);\n\n\t\t List<ReportStatus> status=reportServ.findAllReport(id);\n\t\t List<ReportStatus> unreportdays=new ArrayList<ReportStatus>();\n\t\t for(int i=0;i<status.size();i++)\n\t\t {\n\t\t\t Instant insta =status.get(i).getReportingTime();\n\t\t\t LocalDate localdate = insta.atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\tif(isWithinRange(localdate,start1,end1)==true)\n\t\t\t{\n\t\t\t\tunreportdays.add(status.get(i));\n\t\t\t}\n\t\t }\n\n\t\tAppraisal appraisal=appraisalService.getOneAppraisal(id);\n\t\tmv.addObject(\"appraisal\",appraisal);\n\t\t mv.addObject(\"a\",a);\n\t\t mv.addObject(\"un\",un);\n\t\t mv.addObject(\"time\",time);\n\t\t mv.addObject(\"day\",days);\n\t\t mv.addObject(\"total\",total);\n\t\t mv.addObject(\"workedHour\",workedHour);\n\t\t mv.addObject(\"unreportdays\",unreportdays);\n\t\t Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t boolean isAdmin=authentication.getAuthorities().stream().anyMatch(r -> r.getAuthority().equals(\"ROLE_ADMIN\"));\n\t\t boolean isUser=authentication.getAuthorities().stream().anyMatch(r -> r.getAuthority().equals(\"ROLE_USER\"));\n\t\t if(isAdmin)mv.addObject(\"isAdmin\",true);\n\t\t if(isUser)mv.addObject(\"isUser\",true);\n\t\t return mv ;\n }", "public String getAdversByWorkSpanId(String workSpanId,String publishDate,String orgId) {\n \tList checkedList =new ArrayList();\r\n \t Map mp = new HashMap();\r\n\t\t String ctxpath =RequestUtil.getReqInfo().getCtxPath();\r\n\t\t checkedList.add(workSpanId);\r\n\t\t mp.put(\"workSpanIdList\",checkedList);\r\n\t\t mp.put(\"beginDate\",publishDate);\r\n\t\t mp.put(\"endDate\",publishDate);\r\n\r\n \tList ls = dao.getOrderDayInfosAdversByWorkSpanId(mp);\r\n \tStringBuffer sb=new StringBuffer();\r\n\t\tsb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n\t\tsb.append(\"<rows>\");\r\n\t\tint i=1; \r\n\t\tint sum=0;\r\n\t\tString checkState =\"\";\r\n\t\tboolean isDetailCheck = true;\r\n\t\t\r\n \tfor(Iterator it=ls.iterator();it.hasNext();){\r\n \t\tPublishArrangeDetail publishArrangeDetail=(PublishArrangeDetail)it.next();\r\n \t\t String adLen = StringUtil.getNullValue(publishArrangeDetail.getMatterLength(),\"0\");\r\n \t\t String adverTimes = StringUtil.getNullValue(publishArrangeDetail.getAdverTimes(),\"0\");\r\n \t\t sum+= Integer.parseInt(adLen)*Integer.parseInt(adverTimes);\r\n\r\n \t\t sb.append(\"<row id=\\\"\"+i+\"\\\">\"); \r\n\t sb.append(\"<cell image='leaf.gif'>\"+ (i++) +\"</cell>\");\r\n\t \r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ StringUtil.encodeStringXML(publishArrangeDetail.getMatterName()) +\"]]></cell>\");\r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ StringUtil.encodeStringXML(publishArrangeDetail.getMatterEdit()) +\"]]></cell>\");\r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ StringUtil.null2String(adLen+\"*\"+adverTimes)+\"]]></cell>\");\r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ StringUtil.encodeStringXML(publishArrangeDetail.getSpecificName()) +\"]]></cell>\");\r\n\t \t\t \r\n//\t \t\tSystem.out.println(\">>>>>>> adver 11111111111111111111111111111111111111111 publishArrangeDetail.getOwnerUserName()>>>>>>>\" +publishArrangeDetail.getOwnerUserName()); \r\n//\t \t\tSystem.out.println(\">>>>>>> adver 11111111111111111111111111111111111111111 publishArrangeDetail.getOwnerUserName()>>>>>>>\" +publishArrangeDetail.getFirstName()+publishArrangeDetail.getLastName()); \r\n\t \t\t\r\n\t \t\tsb.append(\"<cell><![CDATA[\"+ StringUtil.null2String(publishArrangeDetail.getOwnerUserName())+\"]]></cell>\");\r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ StringUtil.null2String(publishArrangeDetail.getCustomerName())+\"]]></cell>\");\r\n//\t \t\t sb.append(\"<cell><![CDATA[\" + StringUtil.null2String(publishArrangeDetail.getOrderCode()) + \"]]></cell>\");\r\n\t \t\t \r\n\t \t\t \r\n\t \t\t sb.append(\"<cell><![CDATA[ <a target=_blank href=\"+ ctxpath +\"/editOrder.html?id=\"+ publishArrangeDetail.getOrderId().toString()+\"&orgId=\"+ orgId+\">\" +publishArrangeDetail.getOrderCode() +\"</a>]]></cell>\");\r\n\t \t\t \r\n\t \t\t if(isDetailCheck){\r\n\t \t\t\tcheckState = StringUtil.null2String(publishArrangeDetail.getSpecificName());\r\n\t \t\t }else{\r\n\t \t\t\tcheckState = StringUtil.null2String(publishArrangeDetail.getPublishMemo());\r\n\t \t\t }\r\n\t \t\t \r\n\t \t\t sb.append(\"<cell><![CDATA[\"+ checkState +\"]]></cell>\");\r\n\t \t\t \r\n\t \t\t sb.append(\"</row>\");\r\n \t}\t\t\t\t\t\r\n\t\t sb.append(\"<row id=\\\"\"+i+\"\\\">\"); \r\n\t sb.append(\"<cell image='leaf.gif'>\"+ \"合计:\" +\"</cell>\");\r\n\t\t sb.append(\"<cell><![CDATA[\"+ \"\" +\"]]></cell>\");\r\n\t\t sb.append(\"<cell><![CDATA[\"+ \"\"+\"]]></cell>\");\r\n\t\t sb.append(\"<cell><![CDATA[\"+ sum +\"]]></cell>\");\r\n\t\t sb.append(\"<cell>\"+ \"\"+\"</cell>\");\r\n \t\t sb.append(\"</row>\"); \r\n \t\t sb.append(\"</rows>\");\r\n \t \r\n \treturn sb.toString();\r\n }", "@GetMapping(value = \"/assessById/{id}\")\n public String getPatientDiabetesAssessmentById(@PathVariable(\"id\") int id, Model model) {\n Patient patient = patientService.findPatientById(id);\n\n if (patient == null) {\n throw new ResourceException(HttpStatus.NOT_FOUND, \"There are no patient with the id : \" + id + \" in the database\");\n }\n\n List<Note> note = practitionerService.findPractitionerNotesHistoryById(id);\n\n PatientMedicalRecord patientMedicalRecord = new PatientMedicalRecord();\n\n patientMedicalRecord.setName(patient.getName());\n patientMedicalRecord.setFamilyName(patient.getFamilyName());\n patientMedicalRecord.setDateOfBirth(patient.getDateOfBirth());\n patientMedicalRecord.setGender(patient.getGender());\n\n List<String> list = new ArrayList<>();\n\n for (Note value : note) {\n list.add(value.getNotesAndRecommendations());\n }\n\n patientMedicalRecord.setNote(list);\n\n Output output = diabetesAnticipatorService.getPatientDiabetesAssessment(patientMedicalRecord);\n\n model.addAttribute(\"output\", output);\n\n return \"patientDiabetesAssessment/output\";\n }", "@Override\r\n\tpublic List<Exam> listAllExamsByDate(LocalDate date)\r\n\t{\n\t\treturn null;\r\n\t\t\r\n\t}", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }", "public void fetchEmployeeDetailsByPromotionCode(EmpCredit empCredit, String promotionCode){\r\n\t\ttry {\r\n\t\t\t String empDetailQuery = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN , HRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME AS NAME,\" \r\n\t\t\t\t\t+ \" HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME,\"\r\n\t\t\t\t\t+ \" NVL(SALGRADE_TYPE,' ') ,SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID,\" \r\n\t\t\t\t\t+ \" HRMS_SALARY_MISC.GROSS_AMT,DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '), \"\r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'), NVL(CADRE_NAME,' '), HRMS_PROMOTION.PRO_GRADE, NVL(CTC,0)\" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_PROMOTION ON(HRMS_PROMOTION.EMP_CODE = HRMS_EMP_OFFC.EMP_ID AND HRMS_PROMOTION.PROM_CODE =\"+promotionCode+\")\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_PROMOTION.PRO_DESG)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_CENTER.CENTER_ID = HRMS_PROMOTION.PRO_BRANCH)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_PROMOTION.PRO_DEPT )\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_PROMOTION.PRO_GRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_SALGRADE_HDR.SALGRADE_CODE = HRMS_PROMOTION.PROM_SALGRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\";\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\r\n\t\t\t\tempCredit.setEmpToken(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpName(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][10]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][14]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][15]));\r\n\t\t\t\tempCredit.setCtcAmt(String.valueOf(empDetailObj[0][16]));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfetchIncrementPeriod(empCredit);\r\n\t}", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "public String exportReportForUserInKinder(String reportFormat ,long iduser , long idkinder ) throws FileNotFoundException, JRException {\n String path = \"C:\\\\Users\\\\ons\\\\git\\\\Esprit-PiDev-4Sae6\" ;\n \n \n \n\t\tList<Bill> bill = (List<Bill>) Bill_rep.bill_byparent_kinder(iduser, idkinder);\n\t\tDbo_User this_User = usRep.findById(iduser).orElseThrow( \n \t\t\t()-> new RuntimeException());\n \tthis.bill = this_User.getFullName();\n \tthis.name_user=this_User.getFullName();\n for (Bill b : bill){\n \tLong amout_rest_to_pay = (long) (TOTAL_AMOUNT - b.getAmount());\n \tLong amount_already_payed = (long) b.getAmount();\n \tb.setAmount_payed(String.valueOf(amount_already_payed));\n \tb.setAmount_not_payed(String.valueOf(amout_rest_to_pay));\n \t\n \tb.setGardenpk(b.getGarden().getName());\n \tb.setUserpk(b.getUser().getFirstName() + \" \"+ b.getUser().getLastName());\n }\n \n \n \n //load file and compile it\n File file = ResourceUtils.getFile(\"classpath:userBill.xml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());\n JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(bill);\n Map<String, Object> parameters = new HashMap<>();\n parameters.put(\"createdBy\", \"Java Techie\");\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);\n Date date = new Date();\n Format formatter = new SimpleDateFormat(\"YYYY-MM-dd_hh-mm-ss\");\n if (reportFormat.equalsIgnoreCase(\"pdf\")) { \n \t\n JasperExportManager.exportReportToPdfFile(jasperPrint, path + \"\\\\bill_User\"+\"_\"+this.name_user+\"_\"+ formatter.format(date) +\".pdf\");\n }\n\n return \"report generated in path : \" + path;\n }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "@Override\n\tpublic EmployeeBean getEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.getEmployeeDetails(id);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n String method = request.getParameter(\"method\");\r\n \r\n if(method.equals(\"insertExam\")){\r\n try{\r\n String name = request.getParameter(\"name\");\r\n\r\n DateFormat sourceFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n String expDateAsString = request.getParameter(\"expeditionDate\");\r\n Date expDate = sourceFormat.parse(expDateAsString);\r\n\r\n String realDateAsString = request.getParameter(\"realizationDate\");\r\n Date realDate = sourceFormat.parse(realDateAsString);\r\n\r\n String certDateAsString = request.getParameter(\"certificationDate\");\r\n Date certDate = sourceFormat.parse(certDateAsString);\r\n \r\n String description = request.getParameter(\"description\");\r\n \r\n ExamController examController = new ExamController();\r\n examController.insert(name, expDate, realDate, certDate, description);\r\n }catch(Exception e){\r\n \r\n }\r\n }\r\n if(method.equals(\"findExam\")){\r\n ExamController examController = new ExamController();\r\n int id = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(id);\r\n Exams exam = examController.findById(id);\r\n String examData = \"\";\r\n\r\n examData += exam.getName();\r\n \r\n int month = exam.getExpeditionDate().getMonth() + 1;\r\n \r\n if( month < 10 )\r\n examData += \",\"+exam.getExpeditionDate().getDate()+\"/0\"+month+\"/\"+(exam.getExpeditionDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getExpeditionDate().getDate()+\"/\"+month+\"/\"+(exam.getExpeditionDate().getYear()+1900);\r\n\r\n month = exam.getRealizationDate().getMonth() + 1;\r\n if( month < 10 )\r\n examData += \",\"+exam.getRealizationDate().getDate()+\"/0\"+month+\"/\"+(exam.getRealizationDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getRealizationDate().getDate()+\"/\"+month+\"/\"+(exam.getRealizationDate().getYear()+1900);\r\n\r\n month = exam.getCertificationDate().getMonth() + 1;\r\n if( month < 10 )\r\n examData += \",\"+exam.getCertificationDate().getDate()+\"/0\"+month+\"/\"+(exam.getCertificationDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getCertificationDate().getDate()+\"/\"+month+\"/\"+(exam.getCertificationDate().getYear()+1900);\r\n \r\n examData += \",\"+exam.getDescription();\r\n \r\n PrintWriter out = response.getWriter();\r\n out.print(examData);\r\n }\r\n \r\n if(method.equals(\"updateExam\")){\r\n try{\r\n int examId = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(\"id : \" + examId);\r\n String name = request.getParameter(\"name\");\r\n\r\n DateFormat sourceFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n String expDateAsString = request.getParameter(\"expeditionDate\");\r\n Date expDate = sourceFormat.parse(expDateAsString);\r\n\r\n String realDateAsString = request.getParameter(\"realizationDate\");\r\n Date realDate = sourceFormat.parse(realDateAsString);\r\n\r\n String certDateAsString = request.getParameter(\"certificationDate\");\r\n Date certDate = sourceFormat.parse(certDateAsString);\r\n \r\n String description = request.getParameter(\"description\");\r\n \r\n ExamController examController = new ExamController();\r\n examController.update(examId, name, expDate, realDate, certDate, description);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n if(method.equals(\"deleteExam\")){\r\n try{\r\n ExamController examController = new ExamController();\r\n int id = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(id);\r\n Exams exam = examController.findById(id);\r\n examController.deleteExam(exam);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n if(method.equals(\"examResults\")){\r\n try{\r\n ExamController examController = new ExamController();\r\n Collection<ExamResult> examResults = examController.getResultsByExam();\r\n String results = \"\";\r\n for(ExamResult examResult: examResults){\r\n results += \"$$\" + examResult.getExam().getExamId() + \"&&\" + examResult.getExam().getName() + \"&&\" + examResult.getPassed() + \"&&\" + examResult.getFailed();\r\n }\r\n System.out.println(results);\r\n results = results.substring(2);\r\n PrintWriter out = response.getWriter();\r\n out.print(results);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n processRequest(request, response);\r\n }", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "@Override\n public FeedbackReportResource getFeedbackReportData(int questionId) {\n QuestionModel byQuestionId = questionRepository.findByQuestionId(questionId);\n if (byQuestionId != null) {\n List<AnswerModel> answerList = answerRepository.findAllById(questionId);\n List<Integer> answerIds = answerList.stream().map(AnswerModel::getId).collect(Collectors.toList());\n List<FeedbackReportModel> feedbackReportModelList = feedbackRepository.getFeedbackCountByQuestionId(answerIds);\n\n FeedbackReportResource feedbackReportResource = new FeedbackReportResource();\n feedbackReportResource.setQuestion(byQuestionId.getQuestion());\n\n\n List<FeedbackReportResource.FeedbackAnswerReportResource> answerReportList = feedbackReportModelList.stream().map(feedbackReportModel -> {\n String answerById = answerRepository.getAnswerById(feedbackReportModel.getAnswerId());\n FeedbackReportResource.FeedbackAnswerReportResource reportResource = new FeedbackReportResource.FeedbackAnswerReportResource();\n reportResource.setAnswer(answerById);\n reportResource.setAnswerCount(feedbackReportModel.getCount());\n return reportResource;\n\n }).collect(Collectors.toList());\n feedbackReportResource.setAnswerReportResources(answerReportList);\n return feedbackReportResource;\n }\n return null;\n }", "@Override\n\n\tpublic StudentBean dispalyemployee(Integer id) {\n\t\tStudentBean employee = null;\n\t\tfor(StudentBean e:stu)\n\t\t{ \n\t\t\tif(e.getStuId()==id)\n\t\t\t{ \n\t\t\t\temployee=e;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn employee ;\n\t}", "public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}", "public String showWeekOrderPassengerDetails(){\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(selectedReportItem.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(selectedReportItem.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\n\t\t}\n\n\t\ttry {\n\t\t\tReportData companyWalletHistory=flightOrderDao.getWalletAmountTxStatementHistoryByUserId(selectedReportItem.getUserId(),selectedReportItem.getOrderId());\n\t\t\tList<WalletAmountTranferHistory> newWalletHistoryList=new ArrayList<WalletAmountTranferHistory>();\n\t\t\tif(companyWalletHistory!=null && companyWalletHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\tfor(WalletAmountTranferHistory history:companyWalletHistory.getWalletAmountTranferHistory()){\n\t\t\t\t\tif(history.getUserId()==Integer.parseInt(selectedReportItem.getUserId())){\n\t\t\t\t\t\tnewWalletHistoryList.add(history);\n\t\t\t\t\t\tcompanyWalletHistory.setWalletAmountTranferHistory(newWalletHistoryList); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(companyWalletHistory!=null){\n\t\t\t\ttxHistory=companyWalletHistory;\n\t\t\t}\n\t\t\tif(flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId())!=null){\n\t\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId());\n\t\t\t}\n\n\t\t\t/* txHistory = flightOrderDao.getWalletAmountTxStatementHistory(reportData.getOrderId());\n\t\t\t endUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(reportData.getOrderId());*/\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SUCCESS;\n\t}", "@RequestMapping(value=\"/getEmployee/{employeeId}\", method = RequestMethod.GET)\r\n\tpublic String getEmployeeById(@PathVariable(\"employeeId\") Integer employeeId, Model model) {\r\n\t\tEmployeeModel employeeModel = employeeService.getEmployeeById(employeeId);\r\n\t\tcom.ps.model.Model.MODE = \"Update\";\r\n\t\tmodel.addAttribute(\"employeeData\", employeeModel);\r\n\t\treturn \"search-employee\";\r\n\t}", "public void updateAttendance(Date date);", "private List<Object[]> getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate,\n endDate)\n .maxResults(SummaryReportService.MAX_VISITED_COMPANIES_RECORD).getResultList();\n }", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchadminemployee\")\n\tpublic ModelAndView gettEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"adminemployeedelete.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getEmployee( @NotNull(message = \"Employee ID cannnot be null\")\n @QueryParam(\"empId\") String empId) {\n return null;\n }", "@GetMapping(\"/employeewiseapprovals\")\n\t\tpublic List<Approval> getEmployeeWiseApprovals(@RequestParam(\"employeeId\") int employeeId)\n\t\t{\n\t\t\tList<Approval> approval= service.searchemployeewiseapproval(employeeId);\n\t\t\treturn approval;\n\t\t}", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord()\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord();\n\t}", "@Override\n public ResponseEntity<?> getReport(Long placeId, Long reportType, Long startDateL, Long endDateL) {\n Date endDate = midnight();\n Date startDate = new Date();\n if (reportType == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (reportType == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (reportType == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (reportType == 3) {\n endDate = new Date(endDateL);\n startDate = new Date(startDateL);\n }\n List<ReportItem> reportItems = new ArrayList<>();\n // get all ticket type of place\n List<TicketType> ticketTypes = ticketTypeRepository.findByPlaceId(placeId);\n int totalRevenue = 0;\n for (TicketType ticketType : ticketTypes) {\n //get all visitor type of a ticket type\n for (VisitorType visitorType : visitorTypeRepository.findByTicketType(ticketType)) {\n ReportItem reportItem = new ReportItem();\n reportItem.setTicketTypeName(ticketType.getTypeName() + \" [\" + visitorType.getTypeName() + \"]\");\n //calculate tickets\n int quantity = ticketRepository.getAllBetweenDates(visitorType.getId(), startDate, endDate);\n reportItem.setQuantity(quantity);\n int remaining = codeRepository.getAllBetweenDates(visitorType, startDate, endDate);\n reportItem.setRemaining(remaining);\n int total = quantity * visitorType.getPrice() * quantity;\n reportItem.setTotal(total);\n reportItems.add(reportItem);\n totalRevenue += total;\n }\n }\n OutputReport outputReport = new OutputReport();\n outputReport.setEndDate(endDateL);\n outputReport.setStartDate(startDateL);\n outputReport.setPlaceId(placeId);\n outputReport.setReportType(reportType);\n outputReport.setReportItemList(reportItems);\n outputReport.setTotalRevenue(totalRevenue);\n return ResponseEntity.ok(outputReport);\n }", "public String getReport(String booking_id) {\n\t\tString sql = \"select report from bookings where booking_id =?\";\n\t\treturn jdbcTemplate.queryForObject(sql, String.class, booking_id); \n\t}", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "@GetMapping(value=\"/employes/{Id}\")\n\tpublic Employee getEmployeeDetailsByEmployeeId(@PathVariable Long Id){\n\t\t\n\t\tEmployee employee = employeeService.fetchEmployeeDetailsByEmployeeId(Id);\n\t\t\n\t\treturn employee;\n\t\t}", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "@Override\n\tpublic JsonListResult findCheckRecordByUidAndDate(String uid, String date) throws Exception {\n\t\tJsonListResult jsonListResult = new JsonListResult();\n\t\t date = date + \"%\";\n\t\tList<Map<String, Object>> list = wxRequestMapper.findCheckRecordByUidAndDate(uid , date);\n\t\tjsonListResult.setList(list);\n\t\treturn jsonListResult;\n\t}", "@GetMapping(value=\"employee/{employeeId}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable(\"employeeId\") int employeeId)\n\t{\n\t\treturn employeeService.getEmployeeById(employeeId);\n\t}" ]
[ "0.77940416", "0.7178676", "0.69937223", "0.67207736", "0.6665865", "0.63738954", "0.63680935", "0.6316597", "0.62896067", "0.6180665", "0.61050165", "0.60890585", "0.6076389", "0.6047418", "0.60286415", "0.592721", "0.5887029", "0.58641124", "0.58380604", "0.58346313", "0.5824379", "0.5782598", "0.5771215", "0.5744888", "0.5724728", "0.57079166", "0.57075155", "0.57067406", "0.56992334", "0.5698722", "0.56927043", "0.5689864", "0.5682472", "0.56685066", "0.5646229", "0.5623989", "0.5623916", "0.56215185", "0.56034696", "0.55796975", "0.5578779", "0.5576979", "0.55750877", "0.55735177", "0.55645025", "0.55578434", "0.55519754", "0.55497277", "0.5543513", "0.5525", "0.551836", "0.54940856", "0.5485673", "0.54837364", "0.5479955", "0.54748636", "0.5474849", "0.5439645", "0.543948", "0.5429137", "0.54150105", "0.5410986", "0.5407837", "0.5403733", "0.5400735", "0.538544", "0.5360133", "0.53545046", "0.5344427", "0.53436565", "0.53310716", "0.53287476", "0.5322193", "0.53217816", "0.5319091", "0.5318849", "0.53178847", "0.5315001", "0.53115934", "0.5303024", "0.52965367", "0.5295627", "0.52919084", "0.5289416", "0.52815616", "0.5271394", "0.52657473", "0.5265204", "0.525938", "0.5250962", "0.52328306", "0.52267724", "0.52228135", "0.52188617", "0.5211788", "0.5210852", "0.51983047", "0.5180819", "0.5167552", "0.51671463" ]
0.8139773
0
getReportByIdFromDateToDate(,,) method takes employeeId , fromDate, toDate as a inputs and display the working details of an employee during given period of time.
@RequestMapping(value = "/getReportByIdFromDateToDate", method = RequestMethod.GET) public @ResponseBody String getReportByIdFromDateToDate( @RequestParam("employeeId") int employeeId, @RequestParam("fromDate") String fromDate, @RequestParam("toDate") String toDate) { logger.info("inside ReportGenerationController getReportByIdFromDateToDate()"); return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId, new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByNameBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByNameDates(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByNameDates()\");\r\n\r\n return reportGenerationService.getReportByNameDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value = \"/getEmployeesReportBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeesReportBetweenDates(\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getEmployeesReportBetweenDates()\");\r\n\r\n return reportGenerationService.getEmployeesReportBetweenDates(new Date(Long.valueOf(fromDate)),\r\n new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\r\n\tpublic List<Report> getReport(Date from,Date to) {\r\n\t\treturn jdbcTemplate.query(SQLConstants.SQL_SELECT_ALL_FOR_SUPERADMIN_FROM_N_TO, new RowMapper<Report>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Report mapRow(ResultSet rs, int arg1) throws SQLException {\r\n\t\t\t\tReport report = new Report();\r\n\t\t\t\treport.setPaymentId(rs.getInt(1));\r\n\t\t\t\t//change the date format\r\n\t\t\t\treport.setPaymentTime(rs.getDate(2));\r\n\t\t\t\treport.setTransactionId(rs.getInt(3));\r\n\t\t\t\treport.setUserId(rs.getInt(5));\r\n\t\t\t\treport.setPayment_by(rs.getString(6));\r\n\t\t\t\treport.setBank_acc_id(rs.getInt(8));\r\n\t\t\t\treport.setAmount(rs.getInt(9));\r\n\t\t\t\treport.setStatus(rs.getInt(10));\r\n\t\t\t\treturn report;\r\n\t\t\t}\r\n\t\t}, from, to);\r\n\t}", "public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }", "public abstract void generateReport(Date from, Date to, String objectCode);", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Date from, Date to) {\n\t\treturn null;\r\n\t}", "public interface DataSource {\n\n Report getSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo);\n\n}", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Date from, Date to) {\n\t\treturn null;\r\n\t}", "@RequestMapping(\"/getUserReport\")\n public List<BookSale> getUserReport(@RequestParam(\"user_id\")int user_id,\n @RequestParam(\"start\")String start,\n @RequestParam(\"end\")String end) {\n Timestamp time1 = Timestamp.valueOf(start);\n Timestamp time2 = Timestamp.valueOf(end);\n return orderService.getUserReport(user_id, time1, time2);\n }", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "public ArrayList<ReverseChargeListDetail> getReverseChargeListDetailReport(\n\t\t\tString payeeName, FinanceDate fromDate, FinanceDate toDate,\n\t\t\tlong companyId) throws DAOException, ParseException {//\n\t\t// /////////\n\t\t// //////\n\t\t// //////\n\n\t\tSession session = HibernateUtil.getCurrentSession();\n\n\t\tQuery query = session\n\t\t\t\t.getNamedQuery(\"getReverseChargeListDetailReportEntries\")\n\t\t\t\t.setParameter(\"startDate\", fromDate.getDate())\n\t\t\t\t.setParameter(\"endDate\", toDate.getDate())\n\t\t\t\t.setParameter(\"companyId\", companyId);\n\n\t\tMap<String, List<ReverseChargeListDetail>> maps = new LinkedHashMap<String, List<ReverseChargeListDetail>>();\n\n\t\tList list = query.list();\n\t\tIterator it = list.iterator();\n\t\tlong tempTransactionItemID = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tObject[] object = (Object[]) it.next();\n\n\t\t\tif (((String) object[1]) != null\n\t\t\t\t\t&& ((String) object[1]).equals(payeeName)) {\n\n\t\t\t\tReverseChargeListDetail r = new ReverseChargeListDetail();\n\n\t\t\t\tr.setAmount((Double) object[0]);\n\t\t\t\tr.setCustomerName((String) object[1]);\n\t\t\t\tr.setMemo((String) object[2]);\n\t\t\t\tr.setName(payeeName);\n\t\t\t\tr.setNumber((String) object[3]);\n\t\t\t\tr.setPercentage((Boolean) object[4]);\n\t\t\t\tr.setSalesPrice((Double) object[5]);\n\t\t\t\tr.setTransactionId((Long) object[6]);\n\t\t\t\tr.setTransactionType((Integer) object[7]);\n\t\t\t\tr.setDate(new ClientFinanceDate((Long) object[9]));\n\n\t\t\t\tif (maps.containsKey(r.getCustomerName())) {\n\t\t\t\t\tmaps.get(r.getCustomerName()).add(r);\n\t\t\t\t} else {\n\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\treverseChargesList.add(r);\n\t\t\t\t\tmaps.put(r.getCustomerName(), reverseChargesList);\n\t\t\t\t}\n\n\t\t\t\tif (tempTransactionItemID == 0\n\t\t\t\t\t\t|| ((Long) object[12]) != tempTransactionItemID) {\n\n\t\t\t\t\tReverseChargeListDetail r2 = new ReverseChargeListDetail();\n\n\t\t\t\t\ttempTransactionItemID = ((Long) object[12]);\n\n\t\t\t\t\tr2.setAmount((Double) object[8]);\n\t\t\t\t\tr2.setCustomerName((String) object[1]);\n\t\t\t\t\tr2.setDate(new ClientFinanceDate((Long) object[9]));\n\t\t\t\t\tr2.setMemo((String) object[10]);\n\t\t\t\t\tr2.setName((String) object[1]);\n\t\t\t\t\tr2.setNumber((String) object[3]);\n\t\t\t\t\tr2.setPercentage(false);\n\t\t\t\t\tr2.setSalesPrice((Double) object[11]);\n\t\t\t\t\tr2.setTransactionId((Long) object[6]);\n\t\t\t\t\tr2.setTransactionType((Integer) object[7]);\n\n\t\t\t\t\tif (maps.containsKey(r2.getCustomerName())) {\n\t\t\t\t\t\tmaps.get(r2.getCustomerName()).add(r2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\t\treverseChargesList.add(r2);\n\t\t\t\t\t\tmaps.put(r2.getCustomerName(), reverseChargesList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString[] names = new String[maps.keySet().size()];\n\n\t\tmaps.keySet().toArray(names);\n\n\t\tArrays.sort(names, String.CASE_INSENSITIVE_ORDER);\n\n\t\tList<ReverseChargeListDetail> reverseCharges = new ArrayList<ReverseChargeListDetail>();\n\n\t\tfor (String s : names) {\n\n\t\t\treverseCharges.addAll(maps.get(s));\n\t\t}\n\n\t\treturn new ArrayList<ReverseChargeListDetail>(reverseCharges);\n\t}", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "public List<GLJournalApprovalVO> getAllPeriod(String ClientId, String FromDate, String ToDate) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT c_period.c_period_id AS ID,to_char(c_period.startdate,'dd-MM-YYYY'),c_period.name,c_period.periodno FROM c_period WHERE \"\n + \" AD_CLIENT_ID IN (\" + ClientId\n + \") and c_period.startdate>=TO_DATE(?) and c_period.enddate<=TO_DATE(?) order by c_period.startdate \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FromDate);\n st.setString(2, ToDate);\n log4j.debug(\"period:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setStartdate(rs.getString(2));\n VO.setName(rs.getString(3));\n VO.setPeriod(rs.getString(4));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "public void fillList(int roomid, String inputdateTo, String inputdateFrom) {\n list = new ArrayList();\n Connection cnn = null;\n Statement st = null;\n ResultSet rs = null;\n\n String sql = \"select sche.scheduleID as ID,shift.shiftname as shiftname,lab.roomName as roomName,d.dateword as datework,\"\n + \" we.keyword as keywork,sche.status as status,sche.dateworkID sdateworkID from tbl_schedule as sche inner join \"\n + \" tbl_shiftname as shift on sche.shiftID=shift.shiftID inner \"\n + \" join tbl_labroom as lab on sche.roomID=lab.roomID inner join \"\n + \" tbl_datework as d on sche.dateworkID=d.datewordID inner join \"\n + \" days_week as we on d.dayID=we.dayID where lab.roomID=\" + roomid;\n if (inputdateTo.trim().length() > 3) {\n sql += \" and d.dateword >='\" + inputdateTo + \"'\";\n }\n if (inputdateFrom.trim().length() > 3) {\n sql += \" and d.dateword <='\" + inputdateFrom + \"'\";\n }\n sql += \" order by ID desc \";\n //String connectionURL = \"jdbc:odbc:sem4\";\n try {\n //Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n //cnn = DriverManager.getConnection(connectionURL, \"lab\", \"\");\n cnn = dbconnect.Connect();\n st = cnn.createStatement();\n rs = st.executeQuery(sql);\n int count = 0;\n String ID = \"\";\n String shiftname = \"\";\n String status = \"\";\n String roomName = \"\";\n String datework = \"\";\n String daysweek = \"\";\n int dateworkID = 0;\n SimpleDateFormat formarter = new SimpleDateFormat(\"EE, MMM d,yyyy\");\n while (rs.next()) {\n count = count + 1;\n ID += rs.getInt(\"ID\") + \"/\";\n shiftname += rs.getString(\"shiftname\") + \"/\";\n roomName = rs.getString(\"roomName\");\n\n datework = formarter.format(rs.getDate(\"datework\"));\n daysweek = rs.getString(\"keywork\");\n status += rs.getString(\"status\") + \"/\";\n dateworkID = rs.getInt(\"sdateworkID\");\n int totalShift = cntShiftShow();\n if (count % totalShift == 0) {\n list.add(new classSchedule(ID, shiftname, roomName, datework, daysweek, status, dateworkID));\n ID = \"\";\n shiftname = \"\";\n status = \"\";\n roomName = \"\";\n datework = \"\";\n daysweek = \"\";\n }\n\n }\n } catch (SQLException ex) {\n Logger.getLogger(showSchedule.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public List<TimeSheet> getTimeSheetByPid(Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheetByPid(pid, startDate, endDate);\n }", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "private List<Object[]> getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate,\n endDate)\n .maxResults(SummaryReportService.MAX_VISITED_COMPANIES_RECORD).getResultList();\n }", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }", "public Result getStudyReport(String identifier, String startDateString, String endDateString) {\n UserSession session = getAuthenticatedSession();\n \n LocalDate startDate = getLocalDateOrDefault(startDateString, null);\n LocalDate endDate = getLocalDateOrDefault(endDateString, null);\n \n DateRangeResourceList<? extends ReportData> results = reportService\n .getStudyReport(session.getStudyIdentifier(), identifier, startDate, endDate);\n \n return okResult(results);\n }", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "public List<TimeSheet> getTimeSheet(Integer eid, Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(eid, pid, startDate, endDate);\n }", "public JSONArray getSupervisorReportsData(final String startDate, final String toDate) throws Exception {\n\t\tfinal String endDate = toDate + \" 23:59:59\";\n\t\tfinal List<Object[]> entities = workListDao.getWorklistDataForSupervisorReport(startDate, endDate);\n\t\tfinal JSONArray jsonArray = new JSONArray();\n\t\tfor (Object[] entity : entities) {\n\t\t\tconstructJsonArray(entity, jsonArray);\n\t\t}\n\t\treturn jsonArray;\n\t}", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "@RequestMapping(path = \"/specificDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getIssuesByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\treturn deliveryIssueList.stream().filter(\n\t\t\t\tdeliveryIssue -> !instantIsBetweenDates(\n\t\t\t\t\t\tdeliveryIssue.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "List<Employee> findByJoiningDateBetween(LocalDateTime localDateTime, LocalDateTime localDateTime2);", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "@RequestMapping(value = \"/unitreports/{dept}/{unit}/{fromDate}/{toDate}/\")\n @CrossOrigin\n public String getUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n Enumeration<String> parameterNames = request.getParameterNames();\n Gson gson = new Gson();\n String search = request.getParameter(\"search[value]\");\n String sortColumnIndex = request.getParameter(\"order[0][column]\");\n String sortDir = request.getParameter(\"order[0][dir]\");\n String skip = request.getParameter(\"start\");\n String length = request.getParameter(\"length\");\n String draw = request.getParameter(\"draw\");\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n PaginationDto paginationDto = unitReportService.getUnitsReports(dept,unit,fromDate,toDate,draw,length,skip,sortDir,sortColumnIndex,search);\n\n String jsonString = gson.toJson(paginationDto);\n return jsonString;\n\n }", "public Object getReports(String indicatorName, int indicatorId,\n\t\t\tint startTimeperiod, int endTimeperiod);", "@RequestMapping(\"/getPdfBetweenTwoDate\")\n\tpublic ModelAndView pdfBydate(@RequestParam Long id,@RequestParam (name=\"astart\") String start,\n\t\t\t@RequestParam (name=\"aend\") String end)\n\t{\n\t ModelAndView mv= new ModelAndView(\"redirect:/userDetails\");\n\t\t LocalDate first=LocalDate.parse(start);\n\t\t LocalDate second=LocalDate.parse(end);\n\t\t long days= ChronoUnit.DAYS.between(first,second);\n\t\t if(days>1)\t appraisalService.setAppraisalByDate(id, first, second);\n\t\t else {\n\t\t\t mv.addObject(\"errorInApp\", true);\n\t\t\t error(id);\n\t\t }\n\t\t mv.addObject(\"randomApp\",true);\n\t\t mv.addObject(\"id\",id);\n\t\t mv.addObject(\"astart\",start.toString());\n\t\t mv.addObject(\"aend\",end.toString());\n\n\t\treturn mv;\n\t}", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}", "public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }", "@Override\n public String editAttendanceDetails(HrAttendanceDetailsTO hrAttendanceDetailsTO, String empId) throws ApplicationException {\n long begin = System.nanoTime();\n String message = \"false\";\n int count = 0, compCode = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getCompCode();\n String month = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenMonth(), authBy = hrAttendanceDetailsTO.getAuthBy(), enteredBy = hrAttendanceDetailsTO.getEnteredBy();\n int workingDays = hrAttendanceDetailsTO.getWorkingDays(), presentDays = hrAttendanceDetailsTO.getPresentDays(), absentDays = hrAttendanceDetailsTO.getAbsentDays(),\n attenYear = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenYear();\n double dedDays = hrAttendanceDetailsTO.getDeductDays();\n long overTime = hrAttendanceDetailsTO.getOverTimePeriod();\n HrAttendanceDetailsDAO hrAttendanceDetailsDAO = new HrAttendanceDetailsDAO(em);\n HrPersonnelDetailsDAO hrPersonnelDAO = new HrPersonnelDetailsDAO(em);\n UserTransaction ut = context.getUserTransaction();\n try {\n ut.begin();\n HrPersonnelDetails hrPersonnelDetails = hrPersonnelDAO.findByEmpStatusAndEmpId(compCode, empId, 'Y');\n if (hrPersonnelDetails.getHrPersonnelDetailsPK() != null) {\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue());\n hrAttendanceDetailsPK.setAttenMonth(month);\n hrAttendanceDetailsPK.setAttenYear(attenYear);\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setPostFlag('N');\n List<HrAttendanceDetails> hrAttendanceList = hrAttendanceDetailsDAO.findAttendanceDetailsPostedForMonth(hrAttendanceDetails);\n if (!hrAttendanceList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceList) {\n hrAttenDetailsEntity.setAbsentDays(absentDays);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setWorkingDays(workingDays);\n hrAttenDetailsEntity.setPresentDays(presentDays);\n hrAttenDetailsEntity.setModDate(new Date());\n hrAttenDetailsEntity.setOverTimePeriod(overTime);\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setDeductDays(dedDays);\n hrAttendanceDetailsDAO.update(hrAttenDetailsEntity);\n count++;\n }\n } else {\n ut.rollback();\n return \"Attendance details already posted so can not be updated !\";\n }\n if (count != 0) {\n ut.commit();\n return \"Attendance details Successfully Updated for selected employee. \";\n }\n } else {\n ut.rollback();\n return \"There is no active employee in the company\";\n }\n } catch (DAOException e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n if (e.getExceptionCode().getExceptionMessage().equals(\"NoResultException\")) {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), ex);\n }\n } else {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), ex);\n }\n }\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n }\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for editAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return message;\n }", "public interface DailyReportService {\n /**\n * 通过时间获取日报表\n * @param dailyRportQueryDTO\n * @return\n */\n List<DailyReportDO> getDailyReportByTime(DailyRportQueryDTO dailyRportQueryDTO);\n}", "public TimeSheet showfilledTimeSheet(Integer employeeId, Integer projectId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n TimeSheet timeSheet = timeSheetRepository.getTimeSheet(employeeId, projectId, date);\n return timeSheet;\n }", "public List<Contact> readEmployeePayrollForGivenDateRange(IOService ioService, LocalDate startDate,\n\t\t\tLocalDate endDate) throws CustomPayrollException {\n\t\tif (ioService.equals(IOService.DB_IO)) {\n\t\t\tthis.employeePayrollList = normalisedDBServiceObj.getEmployeeForDateRange(startDate, endDate);\n\t\t}\n\t\treturn employeePayrollList;\n\t}", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "public ArrayList<Salary> getSalariesByStartDateAndEndDateAndEmployeeId(String startDate,\n String endDate,\n String employeeId) {\n ArrayList<Salary> salaries = new ArrayList<>();\n for (Salary s : allSalaries.values()) {\n if (s.getEmployeeId().equals(employeeId)) {\n try {\n Date start = CalendarUtil.sdfDayMonthYear.parse(startDate);\n Date currentStart = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayBatDau());\n Date end = CalendarUtil.sdfDayMonthYear.parse(endDate);\n Date currentEnd = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayKetThuc());\n if ((start.compareTo(currentStart) <= 0 && currentStart.compareTo(end) <= 0) ||\n start.compareTo(currentEnd) <= 0 && currentEnd.compareTo(end) <= 0) {\n salaries.add(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n return salaries;\n }", "@Override\n\tpublic List<Booking> getDetails(String empid) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where employeeId=\"+empid);\n\t\treturn query.list();\n\t}", "public List<TimeSheet> getTimeSheet(Integer eid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(eid, startDate, endDate);\n }", "@ApiOperation(\n value = \"Calculate the work days for a certain period and person\",\n notes = \"The calculation depends on the working time of the person.\"\n )\n @GetMapping(\"/workdays\")\n @PreAuthorize(SecurityRules.IS_OFFICE)\n public ResponseWrapper<WorkDayResponse> workDays(\n @ApiParam(value = \"Start date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-01\")\n @RequestParam(\"from\")\n String from,\n @ApiParam(value = \"End date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-08\")\n @RequestParam(\"to\")\n String to,\n @ApiParam(value = \"Day Length\", defaultValue = \"FULL\", allowableValues = \"FULL, MORNING, NOON\")\n @RequestParam(\"length\")\n String length,\n @ApiParam(value = \"ID of the person\")\n @RequestParam(\"person\")\n Integer personId) {\n\n final LocalDate startDate;\n final LocalDate endDate;\n try{\n DateTimeFormatter fmt = DateTimeFormatter.ofPattern(RestApiDateFormat.DATE_PATTERN);\n startDate = LocalDate.parse(from, fmt);\n endDate = LocalDate.parse(to, fmt);\n } catch (DateTimeParseException exception) {\n throw new IllegalArgumentException(exception.getMessage());\n }\n\n if (startDate.isAfter(endDate)) {\n throw new IllegalArgumentException(\"Parameter 'from' must be before or equals to 'to' parameter\");\n }\n\n final Optional<Person> person = personService.getPersonByID(personId);\n\n if (!person.isPresent()) {\n throw new IllegalArgumentException(\"No person found for ID=\" + personId);\n }\n\n final DayLength howLong = DayLength.valueOf(length);\n final BigDecimal days = workDaysService.getWorkDays(howLong, startDate, endDate, person.get());\n\n return new ResponseWrapper<>(new WorkDayResponse(days.toString()));\n }", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "public void populateDataForVisitTimeReport(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n\n // reset\n this.mapCompanyBranchVsListEmployee = new HashMap<>();\n this.mapCompanyBranchVsListOfPurposes = new HashMap<>();\n this.mapCompanyBranchVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchPurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeePurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeeVsVisitTimes = new HashMap<>();\n // init\n for (final String companyCode : companyCodes) {\n for (final String branchCode : SummaryReportService.BRANCHES.keySet()) {\n final String key =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n this.mapCompanyBranchVsListEmployee.put(key, new ArrayList<Integer>());\n this.mapCompanyBranchVsListOfPurposes.put(key, new ArrayList<Short>());\n this.mapCompanyBranchVsVisitTimes.put(key, 0);\n }\n }\n\n final List<Daily_report> listDailyReport = this.getListVisited(startDate, endDate, companyCodes);\n\n for (final Daily_report daily : listDailyReport) {\n final String companyCode = daily.getDai_company_code();\n String branchCode = daily.getDai_point_code();\n\n final int employeeCode = daily.getDai_employee_code();\n final boolean isHQ = daily.getEmployee_mst().getEmp_settle_authority() == AuthorityLevels.HEAD_QUARTER;\n if (isHQ) {\n branchCode = SummaryReportConstants.HQ_CODE;\n }\n final String companyBranchKey =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n\n if (this.mapCompanyBranchVsListEmployee.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListEmployee.get(companyBranchKey).contains(employeeCode)) {\n this.mapCompanyBranchVsListEmployee.get(companyBranchKey).add(employeeCode);\n }\n }\n if (this.mapCompanyBranchVsListOfPurposes.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey)\n .contains(daily.getDai_work_tancode())) {\n this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey).add(daily.getDai_work_tancode());\n }\n }\n if (this.mapCompanyBranchVsVisitTimes.containsKey(companyBranchKey)) {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey,\n this.mapCompanyBranchVsVisitTimes.get(companyBranchKey) + 1);\n }\n else {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey, 0);\n }\n\n final String companyBranchPurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_PURPOSE_KEY_PATTERN, companyCode, branchCode,\n daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchPurposeVsVisitTimes, companyBranchPurposeKey);\n\n final String companyBranchEmployeeKey = String.format(\n SummaryReportService.COMPANY_BRANCH_EMPLOYEE_KEY_PATTERN, companyCode, branchCode, employeeCode);\n this.updateCountersOfMap(this.mapCompanyBranchEmployeeVsVisitTimes, companyBranchEmployeeKey);\n\n final String companyBranchEmployeePurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_EMPLOYEE_PURPOSE_KEY_PATTERN, companyCode,\n branchCode, employeeCode, daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchEmployeePurposeVsVisitTimes, companyBranchEmployeePurposeKey);\n }\n\n }", "void generateResponseHistory(LocalDate from, LocalDate to);", "private ReportRequest getAdReport(Calendar from, Calendar to) {\r\n\t\tAdPerformanceReportRequest request = new AdPerformanceReportRequest();\r\n\t\trequest.setFormat(ReportFormat.CSV);\r\n\t\trequest.setReportName(\"Ad Report\");\r\n\t\trequest.setAggregation(NonHourlyReportAggregation.DAILY);\r\n\t\trequest.setReturnOnlyCompleteData(false);\r\n\r\n\t\tAccountThroughAdGroupReportScope scope = new AccountThroughAdGroupReportScope();\r\n\t\tArrayOflong accountIds = new ArrayOflong();\r\n\t\taccountIds.getLongs().add(authorizationData.getAccountId());\r\n\t\tscope.setAccountIds(accountIds);\r\n\t\tscope.setCampaigns(null);\r\n\t\tscope.setAdGroups(null); \r\n\t\trequest.setScope(scope);\r\n\r\n\t\tArrayOfAdPerformanceReportColumn value = new ArrayOfAdPerformanceReportColumn();\r\n\t\tList<AdPerformanceReportColumn> columns = value.getAdPerformanceReportColumns();\r\n\t\tString adFields = adsProperties.getProperty(\"api.bing.adPerformanceReport.fields\");\r\n\t\tif (adFields != null && adFields.length() > 2) {\r\n\t\t\tfor (String fieldId : adFields.split(\",\")) {\r\n\t\t\t\tcolumns.add(AdPerformanceReportColumn.fromValue(fieldId));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_TITLE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_1);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_2);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_DESCRIPTION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CLICKS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.COST_PER_CONVERSION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.SPEND);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CONVERSION_RATE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.IMPRESSIONS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DESTINATION_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.FINAL_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DISPLAY_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TIME_PERIOD);\r\n\t\t}\r\n\t\trequest.setColumns(value);\r\n\r\n\t\tReportTime reportTime = new ReportTime();\r\n\t\tDate start = new Date();\r\n\t\tDate end = new Date();\r\n\t\tstart.setDay(from.get(Calendar.DAY_OF_MONTH));\r\n\t\tstart.setMonth(from.get(Calendar.MONTH)+1);\r\n\t\tstart.setYear(from.get(Calendar.YEAR));\r\n\t\tend.setDay(to.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.setMonth(to.get(Calendar.MONTH)+1);\r\n\t\tend.setYear(to.get(Calendar.YEAR));\r\n\t\treportTime.setCustomDateRangeStart(start);\r\n\t\treportTime.setCustomDateRangeEnd(end);\r\n\t\trequest.setTime(reportTime);\r\n\r\n\t\treturn request;\r\n\t}", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "@Override\r\n\tpublic ArrayList<SalesReturnBillPO> getBillsByDate(String from, String to) throws RemoteException {\n\t\tArrayList<SalesReturnBillPO> bills=new ArrayList<SalesReturnBillPO>();\r\n\t\ttry{\r\n\t\t\tStatement s=DataHelper.getInstance().createStatement();\r\n\t\t\tResultSet r=s.executeQuery(\"SELECT * FROM \"+billTableName+\r\n\t\t\t\t\t\" WHERE generateTime>'\"+from+\"' AND generateTime<DATEADD(DAY,1,\"+\"'\"+to+\"');\");\r\n\t\t\twhile(r.next()){\r\n\t\t\t\tSalesReturnBillPO bill=new SalesReturnBillPO();\r\n\t\t\t\tbill.setCustomerId(r.getString(\"SRBCustomerID\"));\r\n\t\t\t\tbill.setDate(r.getString(\"generateTime\").split(\" \")[0]);\r\n\t\t\t\tbill.setId(r.getString(\"SRBID\"));\r\n\t\t\t\tbill.setOperatorId(r.getString(\"SRBOperatorID\"));\r\n\t\t\t\tbill.setOriginalSBId(r.getString(\"SRBOriginalSBID\"));\r\n\t\t\t\tbill.setOriginalSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setRemark(r.getString(\"SRBRemark\"));\r\n\t\t\t\tbill.setReturnSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setSalesManName(r.getString(\"SRBSalesmanName\"));\r\n\t\t\t\tbill.setState(r.getInt(\"SRBCondition\"));\r\n\t\t\t\tbill.setTime(r.getString(\"generateTime\").split(\" \")[1]);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bills.size();i++){\r\n\t\t\t\tStatement s1=DataHelper.getInstance().createStatement();\r\n\t\t\t\tResultSet r1=s1.executeQuery(\"SELECT * FROM \"+recordTableName+\r\n\t\t\t\t\t\t\" WHERE SRRID=\"+bills.get(i).getId()+\";\");\r\n\t\t\t\tArrayList<SalesItemsPO> items=new ArrayList<SalesItemsPO>();\r\n\t\t\t\t\r\n\t\t\t\twhile(r1.next()){\r\n\t\t\t\t\tSalesItemsPO item=new SalesItemsPO(\r\n\t\t\t\t\t\t\tr1.getString(\"SRRComID\"),\r\n\t\t\t\t\t\t\tr1.getString(\"SRRRemark\"),\r\n\t\t\t\t\t\t\tr1.getInt(\"SRRComQuantity\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRPrice\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRComSum\"));\r\n\t\t\t\t\titems.add(item);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbills.get(i).setSalesReturnBillItems(items);;\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bills;\r\n\t}", "@Override\n public DebitReport getReport(Range<Date> range) {\n\n return DebitReport.builder()\n .debits(\n debitRepository.findByDateBetween(\n range.lowerEndpoint(),\n range.upperEndpoint())\n )\n .build();\n }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@RequestMapping(value = \"/downloadunitreports/{dept}/{unit}/{fromDate}/{toDate}/{search}/\")\n @CrossOrigin\n public byte[] downloadUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate,@PathVariable String search, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n ByteArrayInputStream pdfByteArrayInput = unitReportService.compileReportsIntoPdf(dept,unit,fromDate,toDate,search);\n\n return read(pdfByteArrayInput);\n\n }", "@Override\n @Transactional\n public ReportView getHistoryForPatientId(UUID patientId) {\n User patient = Objects.requireNonNull(userRepository.findOne(patientId));\n Map<LocalDate, Boolean> history = new HashMap<>(7);\n\n for (int i = 0; i < 7; i++) {\n java.sql.Date date = new java.sql.Date(System.currentTimeMillis());\n date.setDate(date.getDate() - i);\n\n List<Assignment> missedAssignments = assignmentRepository.findIncompleteByPatientIdAndDate(patientId, date);\n history.put(date.toLocalDate(), missedAssignments.isEmpty());\n }\n\n ReportView reportView = new ReportView();\n reportView.setUser(patient.toView());\n reportView.setHistory(history);\n return reportView;\n }", "public static ArrayList<CustomerBean> getCutomers(Date fromDate, Date toDate) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where created_on BETWEEN(\"\r\n\t\t\t\t\t+ fromDate + \"\" + toDate + \") ;\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "@RequestMapping(value = \"/{objectId:.+}\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic ResponseEntity<Response> getById(@RequestParam(name = \"graphId\", required = true) String graphId,\n\t\t\t@PathVariable(value = \"objectId\") String objectId,\n\t\t\t@RequestParam(name = \"start\", required = false) String startTime,\n\t\t\t@RequestParam(name = \"end\", required = false) String endTime,\n\t\t\t@RequestHeader(value = \"user-id\") String userId) {\n\t\tString apiId = \"ekstep.learning.audit_history.read\";\n\n\t\tTelemetryManager.log(\"get AuditHistory By ObjectId | \" + \"GraphId: \" + graphId + \" | TimeStamp1: \" + startTime\n\t\t\t\t+ \" | Timestamp2: \" + endTime + \" | ObjectId: \" + objectId);\n\t\ttry {\n\t\t\tResponse response = auditHistoryManager.getAuditHistoryById(graphId, objectId, startTime, endTime, versionId);\n\t\t\tTelemetryManager.log(\"Find Item | Response: \" + response.getResponseCode());\n\t\t\treturn getResponseEntity(response, apiId, null);\n\t\t} catch (Exception e) {\n\t\t\tTelemetryManager.error(\"Find Item | Exception: \" + e.getMessage(), e);\n\t\t\treturn getExceptionResponseEntity(e, apiId, null);\n\t\t}\n\t}", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "@Override\r\n\tpublic List<DispatchAnalysis> getDispatchDetailsBetween(Date fromDate, Date toDate)\t{\r\n\t\t\r\n\t\tList<DispatchAnalysis> dispatchAnalysisDetails=new ArrayList<>();\r\n\t\tDispatchAnalysis dispatchAnalysis=new DispatchAnalysis();\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\tSystem.out.println(orderDetails);\r\n\t\t//for each order placed, get shipment details\r\n\t\tfor(Order order:orderDetails)\t{\r\n\t\t\tList<Shipment> shipmentDetails=order.getShipments();\r\n\t\t\tSystem.out.println(shipmentDetails);\r\n\t\t\t\r\n\t\t\tfor(Shipment shipment:shipmentDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\tc.setTime(order.getOrderDate());\r\n\t\t\t\tc.add(c.DAY_OF_MONTH, 1);\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysis.setProductName(shipment.getProduct().getProductName());\r\n\t\t\t\tdispatchAnalysis.setMerchantName(shipment.getProduct().getInventory().getMerchant().getMerchantName());\r\n\t\t\t\t//expected dispatch date of the product is one day after order placed\r\n\t\t\t\tdispatchAnalysis.setExpectedDispatchDate(c.getTime());\r\n\t\t\t\tdispatchAnalysis.setActualDispatchDate(shipment.getDispatchDate());\r\n\t\t\t\tdispatchAnalysis.setDeliveryDate(shipment.getDeliveryDate());\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysisDetails.add(dispatchAnalysis);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dispatchAnalysisDetails;\r\n\t}", "public List<TblPurchaseOrderDetail>getAllDataPurchaseOrderDetail(TblSupplier supplier,TblPurchaseOrder po,RefPurchaseOrderStatus poStatus,TblItem item,Date startDate,Date endDate,TblPurchaseRequest mr);", "@Override\n\tpublic List<TransactionEntity> displaypassbookByDate(long accountNumber, LocalDate startDate, LocalDate endDate) throws ResourceNotFoundException {\n\t\tOptional<TransactionEntity> accountCheck = passbookDao.getAccountById(accountNumber);\n\t\tList<TransactionEntity> passbook = new ArrayList<TransactionEntity>();\n\t\tif(accountCheck.isPresent())\n\t\t{\n\t\t\tpassbook = passbookDao.displaypassbookByDate1(accountNumber, startDate, endDate);\n\t\t}\n\t\telse\n\t\t\tthrow new ResourceNotFoundException(\"Account does not exist\");\n\n\t\t\n\t\treturn passbook;\n\t}", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "@Transactional(readOnly = true)\n public List<Employee> findBetween(Date firstBirthDate, Date lastBirthDate) {\n logger.debug(\"find employee range : {}\", SearshRange(firstBirthDate, lastBirthDate));\n return employeeDao.findBetween(firstBirthDate, lastBirthDate);\n }", "@RequestMapping(value = \"/v1/getAllPendingRequests\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<MyRequestReportResponse>> getAllPendingRequests(\n\t\t\t@RequestParam(value = \"fromDate\", required = false) String fromDate,\n\t\t\t@RequestParam(value = \"toDate\", required = false) String toDate,\n\t\t\t@RequestHeader(\"x-location-name\") String locationName)\n\t\t\tthrows SystemException {\n\t\tLOGGER.info(\"Invoking getAllPendingRequests api...\");\n\t\tLOGGER.info(\"Entered locationName :\" + locationName);\n\t\tErrorMessage errMsg = new ErrorMessage();\n\t\tList<MyRequestReportResponse> myRequestReportResponses = null;\n\n\t\t// validate location name\n\t\tif (!validationUtils.isValidateLocation(locationName, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\t// validating dates if passed in request\n\t\tif (!validationUtils.validateDates(fromDate, toDate, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\ttry {\n\n\t\t\tmyRequestReportResponses = requestService.getAllPendingRequests(\n\t\t\t\t\tlocationName, fromDate, toDate);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tLOGGER.error(\"Error getting while processing request to get allPendingRequests from inventory \"\n\t\t\t\t\t+ e);\n\t\t\tthrow new SystemException(Constants.FIVE_THOUSAND_SEVEN,\n\t\t\t\t\tConstants.INTERNAL_SERVER_ERROR,\n\t\t\t\t\tHttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t\treturn new ResponseEntity<List<MyRequestReportResponse>>(\n\t\t\t\tmyRequestReportResponses, HttpStatus.ACCEPTED);\n\t}", "@CrossOrigin(origins = \"http://campsiteclient.herokuapp.com\", maxAge = 3600)\n\t@GetMapping\n\tpublic JSONArray checkAvaibility(@RequestParam(value = \"from\") Optional<String> from,\n\t\t\t@RequestParam(value = \"to\") Optional<String> to) throws java.text.ParseException {\n\n\t\tString startDateStringFormat = from\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(1, new Date())));\n\t\tString endDateStringFormat = to\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(31, new Date())));\n\n\t\tDate startDate = bookingServiceImpl.formatDate(startDateStringFormat);\n\t\tDate endDate = dateUtils.formatDate(endDateStringFormat);\n\n\t\tList<BookingDate> bookedDates = bookingDateRepository.getBooking(startDate, endDate);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (BookingDate bookingDate : bookedDates) {\n\t\t\tDate date = bookingDate.getBookingDate();\n\t\t\tString dateToString = dateUtils.formatDate(date);\n\t\t\tlist.add(dateToString);\n\t\t}\n\n\t\tJSONArray result = bookingServiceImpl\n\t\t\t\t.getAvailableDates(new HashSet<BookingDate>(bookedDates), startDate, endDate);\n\t\treturn result;\n\t}", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "public Monthly_report_revision getActiveMonthlyReportByEmpCodeAndTimeOfReportOrderByVersion(\n final Employee_mst selectedEmployee, final Date startDate, final Date endDate) {\n Monthly_report_revision monthlyReport = null;\n monthlyReport =\n this.monthly_reportRepository\n .getActiveMonthlyReportByEmpCodeAndTimeOfReportOrderByVersion(selectedEmployee.getEmp_code(),\n DateUtils.getYear(startDate), DateUtils.getMonth(startDate))\n .maxResults(1).getAnyResult();\n if (monthlyReport == null) {\n monthlyReport = new Monthly_report_revision(0, selectedEmployee, DateUtils.getMonth(startDate),\n DateUtils.getYear(startDate));\n this.updateDefaultValueForMonthlyReportWhenCreateNew(monthlyReport);\n\n monthlyReport.setShounin_joutai(SummaryReportConstants.MonthlyReport.STATUS_OPEN);\n return this.getLatestInfoForMonthlyReport(monthlyReport, selectedEmployee, startDate, endDate);\n }\n\n if (monthlyReport.isOpenStatus()) {\n return this.getLatestInfoForMonthlyReport(monthlyReport, selectedEmployee, startDate, endDate);\n }\n\n return monthlyReport;\n }", "@Override\r\n\tpublic Vector<Log> get(Employee employee, Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetE);\r\n\t\t\tps.setInt(1, employee.getId());\r\n\t\t\tps.setTimestamp(2, begin);\r\n\t\t\tps.setTimestamp(3, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public String getPedStrEndDate(String OrgId, String ClientId, String fromPeriod,\n String toPeriod) {\n String sqlQuery = \"\", startdate = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" select startdate,enddate from c_period where C_PERIOD.AD_Org_ID IN(\" + OrgId\n + \") AND C_PERIOD.AD_Client_ID IN(\" + ClientId + \") AND c_period_id= ? \";\n st = conn.prepareStatement(sqlQuery);\n if (fromPeriod != null)\n st.setString(1, fromPeriod);\n else\n st.setString(1, toPeriod);\n rs = st.executeQuery();\n if (rs.next()) {\n if (fromPeriod != null)\n startdate = rs.getString(\"startdate\");\n else\n startdate = rs.getString(\"enddate\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return startdate;\n }", "public void outputToExcel(String startTime,String endTime) throws ParseException {\n\t\tDate[] dates = new Date[2];\r\n\t\tif (startTime != null && endTime != null) {\r\n\t\t\t\r\n\t\t\tString dateRange = startTime +\" - \"+endTime;\r\n\t\t\tdates = WebUtil.changeDateRangeToDate(dateRange);\r\n\t\t}else {\r\n\t\t\tdates[0] = null;\r\n\t\t\tdates[1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tList<Profit> profits = profitMapper.getProfit(dates[0], dates[1]);\r\n\t\tList<CourseProfit> courseProfits = courseSelectMapper.getCourseProfit(dates[0],WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<CardProfit> cardProfits = cardFeeMapper.getCardProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<MachineBuyConfig> machineBuyConfigs = machineConfigMapper.getMachineProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\t\r\n\t\tMap<String, String> profitMap = new LinkedHashMap<String, String>();\r\n\t\tprofitMap.put(\"date\", \"时间\");\r\n\t\tprofitMap.put(\"vip\", \"会员收益\");\r\n\t\tprofitMap.put(\"course\", \"课程收益\");\r\n\t\tprofitMap.put(\"mechine\", \"器械支出\");\r\n\t\tprofitMap.put(\"sum\", \"总计\");\r\n\t\tString sheetName = \"财务总表\";\r\n\t\t\r\n\t\tMap<String, String> courseProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcourseProfitMap.put(\"selectTime\", \"时间\");\r\n\t\tcourseProfitMap.put(\"courseName\", \"课程名称\");\r\n\t\tcourseProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcourseProfitMap.put(\"courseCost\", \"课程收益\");\r\n\t\tString courseSheet = \"课程收益\";\r\n\t\t\r\n\t\tMap<String, String> cardProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcardProfitMap.put(\"startTime\", \"时间\");\r\n\t\tcardProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcardProfitMap.put(\"cardType\", \"办卡类型\");\r\n\t\tcardProfitMap.put(\"cardFee\", \"办卡收益\");\r\n\t\tString cardSheet = \"办卡收益(1、年卡会员 2、季卡会员 3、月卡会员)\";\r\n\t\t\r\n\t\tMap<String, String> machineOutMap = new LinkedHashMap<String, String>();\r\n\t\tmachineOutMap.put(\"time\", \"时间\");\r\n\t\tmachineOutMap.put(\"machineName\", \"器械名称\");\r\n\t\tmachineOutMap.put(\"machineBrand\", \"器械品牌\");\r\n\t\tmachineOutMap.put(\"machineCost\", \"单价\");\r\n\t\tmachineOutMap.put(\"machineCount\", \"购买数量\");\r\n\t\tmachineOutMap.put(\"sumCost\", \"支出\");\r\n\t\tString machineSheet = \"器械支出\";\r\n\t\t\r\n\t\tExportExcel.excelExport(profits, profitMap, sheetName);\r\n\t\tExportExcel.excelExport(courseProfits, courseProfitMap, courseSheet);\r\n\t\tExportExcel.excelExport(cardProfits, cardProfitMap, cardSheet);\r\n\t\tExportExcel.excelExport(machineBuyConfigs, machineOutMap, machineSheet);\r\n\t}", "@RequestMapping(value = \"/getAllEmployeesWorkingDetails\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesWorkingDetails() {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesWorkingDetails()\");\r\n\r\n return reportGenerationService.getAllEmployeesWorkingDetails();\r\n }", "private long getWorkingDayOfEmployeeByStartDateAndEndDate(final Date startDate, final Date endDate,\n final int emp_code) {\n Long result = this.dailyRepo.getWorkingDaysOfEmployeeByStartDateAndEndDate(emp_code, startDate, endDate)\n .getAnyResult();\n return (null != result) ? result : 0;\n }", "@Override\n public String postAttendanceProcessing(HrAttendanceDetailsTO hrAttendanceDetailsTO, String selectionCriteria, String selectedValues, String mode,String fromdate,String todate ) throws ApplicationException {\n long begin = System.nanoTime();\n int compCode = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getCompCode(), defaultComp;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat ymdformatter = new SimpleDateFormat(\"yyyyMMdd\");\n Date processingDateFrom = hrAttendanceDetailsTO.getProcessDateFrom(), processingDateTo = hrAttendanceDetailsTO.getProcessDateTo();\n String message = \"false\";\n String statFlag = hrAttendanceDetailsTO.getStatFlag(), statUpFlag = hrAttendanceDetailsTO.getStatUpFlag();\n long empCode;\n String authBy = hrAttendanceDetailsTO.getAuthBy();\n String month ;\n int count = 0 ; \n int deletionCount = 0;\n HrPersonnelDetailsDAO hrPersonnelDao = new HrPersonnelDetailsDAO(em);\n HrAttendanceDetailsDAO hrAttendanDAO = new HrAttendanceDetailsDAO(em);\n UserTransaction ut = context.getUserTransaction();\n try {\n ut.begin();\n if (selectionCriteria.equalsIgnoreCase(\"EWE\") || selectionCriteria.equalsIgnoreCase(\"ALL\")) {\n HrPersonnelDetails hrPersonnelDetails = hrPersonnelDao.findByEmpStatusAndEmpId(compCode, selectedValues, 'Y');\n if (hrPersonnelDetails.getHrPersonnelDetailsPK() != null) {\n empCode = hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue();\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(empCode);\n if(selectionCriteria.equalsIgnoreCase(\"EWE\")){\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setProcessDateFrom(processingDateFrom);\n hrAttendanceDetails.setProcessDateTo(processingDateTo);\n hrAttendanceDetails.setPostFlag('N');\n }else if(selectionCriteria.equalsIgnoreCase(\"ALL\")){\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setProcessDateFrom(formatter.parse(fromdate));\n hrAttendanceDetails.setProcessDateTo(formatter.parse(todate));\n hrAttendanceDetails.setPostFlag('N'); \n }\n List<HrAttendanceDetails> hrAttendanceDetailsList = hrAttendanDAO.getAttendanceDetailsWithPostFlag(hrAttendanceDetails);\n if (!hrAttendanceDetailsList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceDetailsList) {\n if (mode.equalsIgnoreCase(\"DELETE\")) {\n hrAttendanDAO.delete(hrAttenDetailsEntity, hrAttenDetailsEntity.getHrAttendanceDetailsPK());\n ut.commit();\n return \"Deletion successfull for selected employee!!\";\n }\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setPostFlag('Y');\n hrAttendanDAO.update(hrAttenDetailsEntity);\n count++; \n }\n } else {\n ut.rollback();\n return \"Attendance details has been already posted for selected employee Or no data available for processing!!\";\n }\n if (count != 0) {\n ut.commit();\n return \"Attendance posted successfully for selected employee \";\n } else {\n ut.rollback();\n return \"Attendance could not be posted for selected employee!!\";\n }\n } else {\n ut.commit();\n return \"Employee not active..\";\n }\n } else {\n List<HrPersonnelDetails> hrPersonnelDetailsList = hrPersonnelDao.findEntityEmpStatusY(compCode, selectedValues);\n if (!hrPersonnelDetailsList.isEmpty()) {\n for (HrPersonnelDetails hrPersonnelDetails : hrPersonnelDetailsList) {\n empCode = hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue();\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(empCode);\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setProcessDateFrom(processingDateFrom);\n hrAttendanceDetails.setProcessDateTo(processingDateTo);\n hrAttendanceDetails.setPostFlag('N');\n List<HrAttendanceDetails> hrAttendanceDetailsList = hrAttendanDAO.getAttendanceDetailsWithPostFlag(hrAttendanceDetails);\n if (!hrAttendanceDetailsList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceDetailsList) {\n if (mode.equalsIgnoreCase(\"DELETE\")) {\n hrAttendanDAO.delete(hrAttenDetailsEntity, hrAttenDetailsEntity.getHrAttendanceDetailsPK());\n deletionCount++;\n } else {\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setPostFlag('Y');\n hrAttendanDAO.update(hrAttenDetailsEntity);\n count++;\n }\n }\n }\n }\n if (mode.equalsIgnoreCase(\"DELETE\")) {\n if (deletionCount != 0) {\n ut.commit();\n return \"Deletion successfully posted for the selected category\";\n } else {\n ut.rollback();\n return \"Deletion not processed!!!\";\n }\n } else {\n if (count != 0) {\n ut.commit();\n return \"Attendance successfully posted for the selected category\";\n } else {\n ut.rollback();\n return \"Attendance not posted!!\";\n }\n }\n } else {\n ut.rollback();\n return \"There is no active employee in the selected category..\";\n }\n }\n } catch (DAOException e) {\n logger.error(\"Exception occured while executing method postAttendanceProcessing()\", e);\n if (e.getExceptionCode().getExceptionMessage().equals(\"NoResultException\")) {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), ex);\n }\n } else {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), ex);\n }\n }\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method postAttendanceProcessing()\", e);\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n }\n }\n \n }", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "@RequestMapping(value=\"/generateanalysis\",method=RequestMethod.GET)\r\n\tpublic List<PaymentDetailsBean> transactionAnalysis(Date start, Date end){\r\n \r\n\t\treturn service.transactionAnalysis(start, end);\r\n\t}", "public Result getPublicStudyReport(String studyIdString, String identifier, String startDateString,\n String endDateString) {\n StudyIdentifier studyId = new StudyIdentifierImpl(studyIdString);\n\n verifyIndexIsPublic(studyId, identifier);\n // We do not want to inherit a user's session information, if a session token is being \n // passed to this method.\n BridgeUtils.setRequestContext(RequestContext.NULL_INSTANCE);\n\n LocalDate startDate = getLocalDateOrDefault(startDateString, null);\n LocalDate endDate = getLocalDateOrDefault(endDateString, null);\n \n DateRangeResourceList<? extends ReportData> results = reportService.getStudyReport(\n studyId, identifier, startDate, endDate);\n \n return okResult(results);\n }", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "@Override\n public ResponseEntity<?> getReport(Long placeId, Long reportType, Long startDateL, Long endDateL) {\n Date endDate = midnight();\n Date startDate = new Date();\n if (reportType == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (reportType == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (reportType == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (reportType == 3) {\n endDate = new Date(endDateL);\n startDate = new Date(startDateL);\n }\n List<ReportItem> reportItems = new ArrayList<>();\n // get all ticket type of place\n List<TicketType> ticketTypes = ticketTypeRepository.findByPlaceId(placeId);\n int totalRevenue = 0;\n for (TicketType ticketType : ticketTypes) {\n //get all visitor type of a ticket type\n for (VisitorType visitorType : visitorTypeRepository.findByTicketType(ticketType)) {\n ReportItem reportItem = new ReportItem();\n reportItem.setTicketTypeName(ticketType.getTypeName() + \" [\" + visitorType.getTypeName() + \"]\");\n //calculate tickets\n int quantity = ticketRepository.getAllBetweenDates(visitorType.getId(), startDate, endDate);\n reportItem.setQuantity(quantity);\n int remaining = codeRepository.getAllBetweenDates(visitorType, startDate, endDate);\n reportItem.setRemaining(remaining);\n int total = quantity * visitorType.getPrice() * quantity;\n reportItem.setTotal(total);\n reportItems.add(reportItem);\n totalRevenue += total;\n }\n }\n OutputReport outputReport = new OutputReport();\n outputReport.setEndDate(endDateL);\n outputReport.setStartDate(startDateL);\n outputReport.setPlaceId(placeId);\n outputReport.setReportType(reportType);\n outputReport.setReportItemList(reportItems);\n outputReport.setTotalRevenue(totalRevenue);\n return ResponseEntity.ok(outputReport);\n }", "@GetMapping(value = \"/employee/{employeeId}\")\n\tpublic ResponseEntity<Response<Page<TimeEntryDto>>> listByEmployeeId(\n\t\t\t@PathVariable(\"employeeId\") final Long employeeId,\n\t\t\t@RequestParam(value = \"page\", defaultValue = \"0\") final int page,\n\t\t\t@RequestParam(value = \"order\", defaultValue = \"id\") final String order,\n\t\t\t@RequestParam(value = \"direction\", defaultValue = \"DESC\") final String direction) {\n\t\tLOGGER.info(\"Finding time entries by employee id: {}, page: {}\", employeeId, page);\n\t\tfinal Response<Page<TimeEntryDto>> response = new Response<Page<TimeEntryDto>>();\n\n\t\tfinal Page<TimeEntry> timeEntries = this.timeEntryService.findByEmployeeId(employeeId,\n\t\t\t\tPageRequest.of(page, this.qttPerPage, Direction.valueOf(direction), order));\n\t\tfinal Page<TimeEntryDto> timeEntriesDto = timeEntries.map(timeEntry -> this.convertTimeEntryToDto(timeEntry));\n\n\t\tresponse.setData(timeEntriesDto);\n\t\treturn ResponseEntity.ok(response);\n\t}", "public String getPedStrDate(String OrgId, String ClientId, String fromPeriod) {\n String sqlQuery = \"\", startdate = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" select startdate from c_period where C_PERIOD.AD_Org_ID IN(\" + OrgId\n + \") AND C_PERIOD.AD_Client_ID IN(\" + ClientId + \") and c_year_id =(\"\n + \" select c_year_id from c_period where c_period_id= ?) and periodno ='1' \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromPeriod);\n rs = st.executeQuery();\n if (rs.next()) {\n startdate = rs.getString(\"startdate\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return startdate;\n }", "@Override\n\tpublic Optional<LineReport> findReportbyId(int date) {\n\t\treturn null;\n\t}", "public List<EmployeeMemo> getEmployeeMemoListByCreatedByEmpId(int createdByEmpId) throws SQLException, Exception {\t\t\t \t\t\n\t\tString sql = \"SELECT * FROM employeeMemo where createdBy = ?\";\t\t\n\t\tPreparedStatement ps = conn.prepareStatement(sql.toString());\n\t\tps.setInt(1, createdByEmpId);\n\t\n\t ResultSet rs = ps.executeQuery();\n\t List<EmployeeMemo> list = new ArrayList<EmployeeMemo>();\n\t \n\t while (rs.next()) {\n\t \tEmployeeMemo employeeMemo = new EmployeeMemo();\n\t \temployeeMemo.setCcRecipient(rs.getString(\"ccRecipient\"));\n\t \temployeeMemo.setCreatedBy(rs.getInt(\"createdBy\"));\n\t \temployeeMemo.setEmployeeMemoId(rs.getInt(\"employeeMemoId\"));\n\t \temployeeMemo.setFromSender(rs.getString(\"fromSender\"));\n\t \temployeeMemo.setMemoFiledDate(util.sqlDateToString(rs.getDate(\"memofiledDate\")));\n\t \temployeeMemo.setMessage(rs.getString(\"message\"));\n\t \temployeeMemo.setRemarks(rs.getString(\"remarks\"));\n\t \temployeeMemo.setSubject(rs.getString(\"subject\"));\n\t \temployeeMemo.setToRecipientEmpId(rs.getInt(\"toRecipientEmpId\"));\n\t \tlist.add(employeeMemo);\n\t }\n\t \n\t ps.close();\n\t rs.close(); \n\t return list;\t\t\n\t}", "Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);", "private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.7782677", "0.74737895", "0.6982247", "0.67596674", "0.66579074", "0.65875196", "0.6415082", "0.63939226", "0.6330886", "0.6325172", "0.6268589", "0.6251793", "0.62278634", "0.6222092", "0.6181677", "0.6122115", "0.61085415", "0.6067064", "0.5992003", "0.5976354", "0.59526014", "0.58843803", "0.58799964", "0.5874262", "0.5847557", "0.58468145", "0.58414346", "0.5825908", "0.58073336", "0.57912004", "0.57447463", "0.57430625", "0.57395387", "0.5735849", "0.57074356", "0.5696808", "0.56838673", "0.56796753", "0.5667001", "0.5665869", "0.56583357", "0.5652014", "0.5635249", "0.56315696", "0.5630113", "0.56260324", "0.562471", "0.56188333", "0.56135", "0.5602337", "0.5596469", "0.5572068", "0.55545616", "0.55339766", "0.5527866", "0.5510528", "0.5502813", "0.5496249", "0.54865324", "0.5482068", "0.54696256", "0.5459361", "0.5454019", "0.5430566", "0.54152846", "0.5371026", "0.5346587", "0.53399086", "0.5336375", "0.53207695", "0.53192854", "0.53182214", "0.53169703", "0.5316799", "0.5299708", "0.52894706", "0.52848196", "0.52827495", "0.5273714", "0.526714", "0.52581155", "0.52564746", "0.5249134", "0.524801", "0.52302325", "0.5227295", "0.5226103", "0.52230227", "0.5209902", "0.5207507", "0.5207108", "0.51897305", "0.51687515", "0.51680875", "0.51590073", "0.5155301", "0.5152176", "0.51492625", "0.5147267", "0.5143221" ]
0.8641683
0
getReportByName() take input as employeeId (String) and display the total working details of an employee.
@RequestMapping(value = "/getReportByName", method = RequestMethod.POST) public @ResponseBody String getReportByName(@RequestParam("employeeId") String employeeId) { logger.info("inside ReportGenerationController getReportByName()"); return reportGenerationService.getReportByName(employeeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "public String employeeName(int employeeId) {\n\n String nameOfEmployee = \"\";\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (idField == employeeId) {\n nameOfEmployee = nameField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The selected ID belongs to the following employee: \");\n return nameOfEmployee;\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "public String getEmployeeDetails(int employeeId) {\n\treturn employeeService.getEmployeeDetails(employeeId).toString(); \n }", "private static void salariedEmployeeEarningReport(final SalariedEmployee salariedEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(salariedEmployee.getFirstName()).append(\" \").append(salariedEmployee.getLastName());\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(salariedEmployee.getMonthlySalary() / 4));\r\n\t}", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "java.lang.String getEmployeeName();", "public String getEmployeeById(int id) {\n\t\t//logger.info(\"Inside get employee by id.... Now calling get employee by id\");\n\t\t\n\t\t//logger.log(Level.FINEST ,\"theEmployee value is:....................................\"+theEmployee);\n\t\ttry {\n\t\t\tEmployee theEmployee=getEmployeeService().getEmployeeByID(id);\n\t\t\tExternalContext externalContext= FacesContext.getCurrentInstance().getExternalContext();\n\t\t\tMap<String,Object> requestMap= externalContext.getRequestMap();\n\t\t\trequestMap.put(\"employeeBean\", theEmployee);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//logger.info(\"displaying the map................\"+requestMap);\n\t\treturn \"update\";\n\t}", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getAllEmployeesWorkingDetails\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesWorkingDetails() {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesWorkingDetails()\");\r\n\r\n return reportGenerationService.getAllEmployeesWorkingDetails();\r\n }", "@GetMapping(value=\"/employes/{Id}\")\n\tpublic Employee getEmployeeDetailsByEmployeeId(@PathVariable Long Id){\n\t\t\n\t\tEmployee employee = employeeService.fetchEmployeeDetailsByEmployeeId(Id);\n\t\t\n\t\treturn employee;\n\t\t}", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}", "public static String getEmployeeName(String id){\n return \"select e_fname from employee where e_id = '\"+id+\"'\";\n }", "@Override\n\tpublic EmployeeBean getEmployee(int employeeId) {\n\t\tLOGGER.info(\"starts getEmployee method\");\n\t\tLOGGER.info(\"Ends getEmployee method\");\n\t\treturn adminEmployeeDao.getEmployee(employeeId);\n\t}", "String showPaySlip(int empId) {\n\t\tString payslip=\"Employee with given empid is not available in database\";\n\t\tIterator<Employee> iter=list.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tEmployee em=iter.next();\n\t\t\tif(em.getEmpId()==empId) \n\t\t\t\tpayslip=\"Payslip of Employee with EmpID \"+em.getEmpId()+\" is \"+em.getSalary();\n\t\t}\n\t\treturn payslip;\n\t\t\n\t}", "@GetMapping(value=\"employee/{employeeId}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable(\"employeeId\") int employeeId)\n\t{\n\t\treturn employeeService.getEmployeeById(employeeId);\n\t}", "@Override\n\tpublic EmployeeBean getEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.getEmployeeDetails(id);\n\t}", "public String EmployeeSummary(){\r\n\t\treturn String.format(\"%d\\t%d\\t\\tJunior\\t\\t$%,.2f\\t\\t$%,.2f\\r\\n\", getID(), getYearHired(), getBaseSalary(), CalculateTotalCompensation());\r\n\t}", "@Override\n\tpublic Employee getEmployeeById(int employeeId) {\n\t\ttry {\n\t\t\treturn template.queryForObject(\"select * from employee where empid = ?\", new Object[] { employeeId },\n\t\t\t\t\tnew RowMapper<Employee>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Employee mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tEmployee emp = new Employee();\n\t\t\t\t\t\t\temp.setEmployeeId(rs.getInt(\"empid\"));\n\t\t\t\t\t\t\temp.setFirstName(rs.getString(\"fname\"));\n\t\t\t\t\t\t\temp.setLastName(rs.getString(\"lname\"));\n\t\t\t\t\t\t\temp.setEmail(rs.getString(\"email\"));\n\t\t\t\t\t\t\temp.setDesignation(rs.getString(\"desig\"));\n\t\t\t\t\t\t\temp.setLocation(rs.getString(\"location\"));\n\t\t\t\t\t\t\temp.setSalary(rs.getInt(\"salary\"));\n\t\t\t\t\t\t\treturn emp;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t} catch (EmptyResultDataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "@GetMapping(\"/employees/{id}\")\n public ResponseEntity<Employee> getEmployeeById(@PathVariable(value = \"id\") long employeeId) throws ResourceNotFoundException {\n Employee employee = service.getEmployeeById(employeeId).orElseThrow(() -> new ResourceNotFoundException(\"Employee not found for this id: \" + employeeId));\n return ResponseEntity.ok().body(employee);\n }", "@ApiOperation(value = \"getEmployeeById controller method\")\r\n\t@GetMapping(value = \"/getEmployeeById/{employeeId}\")\r\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Integer employeeId) {\r\n\r\n\t\tLog.info(\" Employee Controller Triggerd\");\r\n\r\n\t\tEmployee employee = employeeService.getEmployeeById(employeeId);\r\n\t\treturn new ResponseEntity<Employee>(employee, HttpStatus.OK);\r\n\t}", "public static void getSalesInformation(Employee [] employee) {\n\t\tdouble total = 0;\n\t\tString report = \"-------List of employees with sales information-------\\n\";\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no Employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\ttotal += employee[i+1].getSales().getEachSales();\n\t\t\t\treport += ((i+1) + \" \" + employee[i+1].getName() + \" Sales: \" + employee[i+1].getSales().getEachSales() + \"\\n\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\treport += \"\\nTotal: \" + total;\n\t\t\tJOptionPane.showMessageDialog(null, report);\n\t\t}\n\t}", "private static void hourlyEmployeeEarningReport(final HourlyEmployee hourlyEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(hourlyEmployee.getFirstName()).append(\" \").append(hourlyEmployee.getLastName());\r\n\r\n\t\tdouble weeklyPayAmount = 40 * hourlyEmployee.getHourlyRate();\r\n\r\n\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\tif (hourlyEmployee.getWeeklyWorkedHours() > 40) {\r\n\t\t\tdouble overtime = hourlyEmployee.getWeeklyWorkedHours() - 40;\r\n\t\t\tdouble overtimePay = overtime * (hourlyEmployee.getHourlyRate() * 2);\r\n\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t}\r\n\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(weeklyPayAmount));\r\n\t}", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "public Employee getByID(int empId) {\n\t\tEmployee e = employees.get(empId);\n\t\tSystem.out.println(e);\n\t\treturn e;\n\t}", "@Override\n\n\tpublic StudentBean dispalyemployee(Integer id) {\n\t\tStudentBean employee = null;\n\t\tfor(StudentBean e:stu)\n\t\t{ \n\t\t\tif(e.getStuId()==id)\n\t\t\t{ \n\t\t\t\temployee=e;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn employee ;\n\t}", "@Override\r\n\tpublic Employee findEmployeeById(int empId) {\n\t\tEmployee employee = null;\r\n\t\tString findData = \"select * from employee where empId=?\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(findData);\r\n\t\t\tps.setInt(1, empId);\r\n\r\n\t\t\tResultSet set = ps.executeQuery();\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\temployee = new Employee(id, sal, name, tech);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employee;\r\n\r\n\t}", "@Override\n public String toString (int num)\n {\n String format = \"Weekly pay for %s, %s employee id %s is $%.2f\\n\";\n return String.format(format, this.getLastName(), this.getFirstName(), this.getId(), this.calculatePay());\n }", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public int employeeSalary(String employeeName) {\n\n int actualSalaryOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n actualSalaryOfEmployee = Integer.valueOf(salaryField);\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The salary earned by this employee is: \");\n return actualSalaryOfEmployee;\n\n }", "@RequestMapping(value=\"/getEmployee/{employeeId}\", method = RequestMethod.GET)\r\n\tpublic String getEmployeeById(@PathVariable(\"employeeId\") Integer employeeId, Model model) {\r\n\t\tEmployeeModel employeeModel = employeeService.getEmployeeById(employeeId);\r\n\t\tcom.ps.model.Model.MODE = \"Update\";\r\n\t\tmodel.addAttribute(\"employeeData\", employeeModel);\r\n\t\treturn \"search-employee\";\r\n\t}", "public int employeeSalaryForBenefits(String employeeName) {\n\n int actualSalaryOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n actualSalaryOfEmployee = Integer.valueOf(salaryField);\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return actualSalaryOfEmployee;\n\n }", "public Employee getEmployeeById(Long employeeId) {\n return employeeRepository.findEmployeeById(employeeId);\n }", "@GetMapping(\"/getEmployeeByID/{id}\")\n\t\tpublic ResponseEntity<EmployeeMon> getEmployeeByID(@PathVariable Integer id) throws Exception {\n\t\t\tEmployeeMon model = repository.findById(id)\n\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Employee not found for this id :: \" + id));\n\t\t\treturn ResponseEntity.ok().body(model);\n\t\t}", "private void btnPrintEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintEmployeeActionPerformed\n if(searched == false){\n JOptionPane.showMessageDialog(rootPane, \"Please Perform a search on database first.\");\n return;\n }\n try {\n String report = \"IReports\\\\Employee.jrxml\";\n JasperReport jReport = JasperCompileManager.compileReport(report);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, newHandler.getConnector());\n JasperViewer.viewReport(jPrint, false);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(rootPane, ex.getMessage());\n }\n }", "private void getemp( String name,int id ) {\r\n\t\tSystem.out.println(\" name and id\"+name+\" \"+id);\r\n\t}", "@Override\r\n\tpublic DataResult<Employees> getById(int id) {\n\t\treturn null;\r\n\t}", "public int employeeId(String employeeName) {\n\n int idOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n idOfEmployee = idField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The ID assigned to this employee is: \");\n return idOfEmployee;\n }", "public String getEmployeeName();", "public String toString() {\r\n\t\treturn \"Name : \"+name+\"\\nEmp# : \"+employeeNum;\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t\tpublic void showReport(String str) throws JRException, ClassNotFoundException, SQLException {\n\t\t\tlocation = \"\\\\\\\\192.168.100.245\\\\MU\\\\Blank_Letter_xls.jrxml\";\n\t String reportSrcFile = location;//\"C:\\\\Work\\\\Blank_Letter.jrxml\";\n\t \n\t // First, compile jrxml file.\n\t JasperReport jasperReport = JasperCompileManager.compileReport(reportSrcFile);\n\t jasperReport.setProperty(JRTextElement.PROPERTY_PRINT_KEEP_FULL_TEXT, \"true\");\n\t // Fields for report\n\t //HashMap<String, Object> parameters = new HashMap<String, Object>();\n\t \n\t //parameters.put(\"company\", \"MAROTHIA TECHS\");\n\t //parameters.put(\"receipt_no\", \"RE101\".toString());\n\t //parameters.put(\"name\", \"Khushboo\");\n\t //parameters.put(\"amount\", \"10000\");\n\t //parameters.put(\"receipt_for\", \"EMI Payment\");\n\t //parameters.put(\"date\", \"20-12-2016\");\n\t //parameters.put(\"contact\", \"98763178\".toString());\n\t @SuppressWarnings(\"rawtypes\")\n\t\t\tMap map = new HashMap();\n map.put(\"Id\", str);\n map.put(\"Tsk\", \"AP\"+str);\n\t \t \n\t JasperPrint print = JasperFillManager.fillReport(jasperReport, map, cn.ConToDb1());\n\t try {\n\t \tJasperPrintManager.printReport(print, false);\n\t \tscl._AlertDialog(\"Печать успешно завершена!\", \"Печать\");\n\t }\n\t catch (Exception e) {\n\t\t\t\tscl._AlertDialog(e.getMessage(), \"Ошибка печати!\");\n\t\t\t}\n\t // Make sure the output directory exists.\n//\t File outDir = new File(\"m:/08.USER/U.14.RG/jasperoutput\");\n//\t File outDir = new File(\"C:\\\\Report\\\\jasperoutput\");\n//\t outDir.mkdirs();\n\t \n//\t JRXlsExporter exporter = new JRXlsExporter();\n//\t exporter.setExporterInput(new SimpleExporterInput(print));\n//\t exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(\"m:/08.USER/U.14.RG/jasperoutput/Task_Report\"+conn_connector.USER_ID+\".xls\"));\n//export excel\t exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(\"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\"));\n \n//export excel exporter.exportReport();\n \n// Runtime runtime = Runtime.getRuntime();\n//export excel \ttry {\n//\t\t\t\truntime.exec(\"excel \" + \"m:/08.USER/U.14.RG/jasperoutput/Task_Report\"+conn_connector.USER_ID+\".xls\");\n//\t\t\t\truntime.exec(\"excel \" + \"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\");\n//export excel \t\tFile excelFile = new File(\"C:\\\\Report\\\\jasperoutput\\\\Task_Report\"+conn_connector.USER_ID+\".xls\");\n//export excel \t\tmn._run_excel(excelFile);\n\t\t\t\t\n//export excel\t\t\t} catch (IOException e) {\n\t\t\t\t\n//export excel\t\t\t\te.printStackTrace();\n//export excel\t\t\t}\n \t//btn.setDisable(true);\n\t\t\t\n\t // Export to PDF.\n//\t JasperExportManager.exportReportToHtmlFile(print,\n//\t \"m:/08.USER/U.14.RG/jasperoutput/StyledTextReport\"+conn_connector.USER_ID+\".html\");\n//\t if (Desktop.isDesktopSupported()) {\n//\t try {\n//\t\t\t\t\tDesktop.getDesktop().browse(new URI(\"m:/08.USER/U.14.RG/jasperoutput/StyledTextReport\"+conn_connector.USER_ID+\".html\"));\n//\t\t\t\t} catch (IOException | URISyntaxException e) {\n//\t\t\t\t\t\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t }\n\t //JRViewer viewer = new JRViewer(print);\n\t //viewer.setOpaque(true);\n\t //viewer.setVisible(true);\n\t //this.add(viewer);\n\t ///this.setSize(700, 500);\n\t //this.setVisible(true);\n//\t System.out.print(\"Done!\");\n\t \n\t }", "public String f9employee() throws Exception {\r\n\t\tString query = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN, \"\r\n\t\t\t\t+ \"\tHRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME ,HRMS_EMP_OFFC.EMP_ID,\"\r\n\t\t\t\t+ \"\tHRMS_EMP_OFFC.EMP_DIV,NVL(DIV_NAME,' ') FROM HRMS_EMP_OFFC \"\r\n\t\t\t\t+ \"\tINNER JOIN HRMS_CENTER ON HRMS_CENTER.CENTER_ID = HRMS_EMP_OFFC.EMP_CENTER\"\r\n\t\t\t\t+ \"\tINNER JOIN HRMS_DIVISION ON (HRMS_DIVISION.DIV_ID = HRMS_EMP_OFFC.EMP_DIV)\";\r\n\t\t\t\tquery += getprofileQuery(bulkForm16);\r\n\t\t\t\tquery += \"\tORDER BY HRMS_EMP_OFFC.EMP_ID\";\r\n\r\n\t\tString[] headers = { getMessage(\"employee.id\"), getMessage(\"employee\") };\r\n\r\n\t\tString[] headerWidth = { \"30\", \"70\" };\r\n\r\n\t\tString[] fieldNames = { \"empToken\", \"empName\", \"empId\",\r\n\t\t\t\t\"divisionId\", \"divisionName\" };\r\n\r\n\t\tint[] columnIndex = { 0, 1, 2, 3, 4 };\r\n\r\n\t\tString submitFlag = \"false\";\r\n\r\n\t\tString submitToMethod = \"\";\r\n\t\tsetF9Window(query, headers, headerWidth, fieldNames, columnIndex,\r\n\t\t\t\tsubmitFlag, submitToMethod);\r\n\r\n\t\treturn \"f9page\";\r\n\t}", "public Employee getEmployeeById(int id) {\n\t\tEmployee employee;\n\t\temployee = template.get(Employee.class, id);\n\t\treturn employee;\n\t}", "public Department employeeDepartment(String employeeName) {\n\n String departmentOfEmployee = \"\";\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n departmentOfEmployee = departmentField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"This employee belongs to the following department: \");\n if (departmentOfEmployee.equals(Department.Executive.toString())) {\n return Department.Executive;\n }\n if (departmentOfEmployee.equals(Department.Development.toString())) {\n return Department.Development;\n }\n if (departmentOfEmployee.equals(Department.Accounting.toString())) {\n return Department.Accounting;\n }\n if (departmentOfEmployee.equals(Department.Human_Resources.toString())) {\n return Department.Human_Resources;\n }\n else return Department.No_Department;\n\n }", "public Employee getEmployeeDetailById(int id) {\n\t\treturn dao.getEmployeeDetailById(id);\n\t}", "@GetMapping(\"/employee/{id}\")\r\n\tpublic Employee get(@PathVariable Integer id) {\r\n\t \r\n\t Employee employee = empService.get(id);\r\n\t return employee;\r\n\t \r\n\t}", "public static void printCommonReport(String reportName, HashMap<String, Object> hm) throws SQLException, JRException {\n hm.put(\"shopName\", Loading.getShopName());\n Connection con = DatabaseConnection.getDatabaseConnection();\n JasperDesign jsd = JRXmlLoader.load(\"C:\\\\reports\\\\\" + reportName + \".jrxml\"); //src\\\\cazzendra\\\\pos\\\\\n JasperReport jr = JasperCompileManager.compileReport(jsd);\n JasperPrint jp = JasperFillManager.fillReport(jr, hm, con);\n JasperViewer jasperViewer = new JasperViewer(jp, false);\n jasperViewer.setVisible(true);\n }", "public static void printReport() throws Exception\r\n\t{\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"%5s%20s%10s%15s%20s%15s%15s%20s%10s%20s%10s\\n\\n\", \r\n\t\t\t\t\"ID\", \"Name\", \"Gender\", \"Hourly Rate\", \"Contracted Hours\",\t\"Gross Pay\", \r\n\t\t\t\t\"Income Tax\", \"National Insurance\", \"Pension\", \"Total Deductions\", \"Net pay\");\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\t\r\n\t\t\t//Calculates total deductions\r\n\t\t\tdeduct=tax+nitax+pension;\r\n\t\t\t\r\n\t\t\t//Calculates net pay\r\n\t\t\tnet=gross-deduct;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"%5d%20s%10s%15.2f%20.2f%15.2f%15.2f%15.2f%15.2f%20.2f%10.2f\\n\",\r\n\t\t\t\t\tid, fname+\" \"+sname, gen, hrate, hrs, gross, tax, nitax, pension, deduct, net);\r\n\t\t}\r\n\t\tfs.close();\r\n\t\t\r\n\t}", "@GetMapping(\"/employee/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\t\n\t\tEmployee employee = emprepo.findById(id).orElseThrow(()-> new ResourceNotFoundException(\"Employee not exist with id: \" + id)); \n\t\t\n\t\treturn ResponseEntity.ok(employee);\n\t}", "@RequestMapping(value = \"/bankInfoByEmpId/{empId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public HrEmpBankAccountInfo getEmpBankInfoByEmpId(@PathVariable long empId) {\n log.debug(\"REST request to get BankInfoByEmpId : empId: {}\", empId);\n HrEmpBankAccountInfo bankInfo = hrEmpBankAccountInfoRepository.findByEmployeeInfo(empId);\n return bankInfo;\n }", "public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }", "@GetMapping(\"/employee/{id}\")\n public Employee getEmployeeById(@PathVariable(value = \"id\") Integer id){\n\n Employee employee = employeeService.findEmployeeById(id);\n\n return employee;\n }", "private static void printEmployeeDetails(final List<Employee> employeeDetails) {\r\n\t\tString headerFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tString rowFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Employee details:\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tSystem.out.format(headerFormat, \"Name\", \"Class\", \"Hours\", \"Sales\", \"Rate\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tfor (Employee employee : employeeDetails) {\r\n\t\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\t\temployeeName.append(employee.getFirstName()).append(\" \").append(employee.getLastName());\r\n\r\n\t\t\tif (employee.getClassType().equalsIgnoreCase(\"Salaried\")) {\r\n\r\n\t\t\t\tdouble monthlySalary = ((SalariedEmployee) employee).getMonthlySalary();\r\n\t\t\t\tboolean isRewarded = employee.isRewarded();\r\n\t\t\t\tif (isRewarded) {\r\n\t\t\t\t\tmonthlySalary += monthlySalary * 0.1;\r\n\t\t\t\t}\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(formatter.format(monthlySalary / 4));\r\n\t\t\t\tsb.append(isRewarded ? \"*\" : \"\");\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", \"\", \"\", sb.toString());\r\n\r\n\t\t\t} else if (employee.getClassType().equalsIgnoreCase(\"Hourly\")) {\r\n\r\n\t\t\t\tdouble weeklyWorkedHours = ((HourlyEmployee) employee).getWeeklyWorkedHours();\r\n\t\t\t\tdouble hourlyRate = ((HourlyEmployee) employee).getHourlyRate();\r\n\t\t\t\tdouble weeklyPayAmount = 40 * ((HourlyEmployee) employee).getHourlyRate();\r\n\r\n\t\t\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\t\t\tif (((HourlyEmployee) employee).getWeeklyWorkedHours() > 40) {\r\n\t\t\t\t\tdouble overtime = ((HourlyEmployee) employee).getWeeklyWorkedHours() - 40;\r\n\t\t\t\t\tdouble overtimePay = overtime * (((HourlyEmployee) employee).getHourlyRate() * 2);\r\n\t\t\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), weeklyWorkedHours, \"\", formatter.format(hourlyRate), formatter.format(weeklyPayAmount));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tdouble weeklySales = ((CommissionedEmployee) employee).getWeeklySales();\r\n\t\t\t\tdouble commissionRate = ((CommissionedEmployee) employee).getCommissionRate();\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", formatter.format(weeklySales), \"\", formatter.format(weeklySales * commissionRate));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nNote: * A 10% bonus is awarded\\n\");\r\n\r\n\t}", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}", "@RequestMapping(path = \"/employee/{id}\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic Optional<Employee> displayEmployeeById() {\r\n\t\treturn er.findById(1);\r\n\t}", "public List<Employee> listEmployees (int managerId){\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\ttry {\n\t\t\t// use prepared statements to prevent sql injection attacks\n\t\t\tPreparedStatement stmt = null;\n\t\t\t\n // the query to send to the database\n String query = \"SELECT e.EmployeeID, e.FirstName, e.LastName, e.ManagerID As ManagerID, (SELECT COUNT(*) FROM employees WHERE ManagerID = e.EmployeeID) AS DirectReports FROM employees e \"; \n \n if (managerId == 0) {\n // select where employees reportsto is null\n query += \"WHERE e.ManagerID = 0\";\n stmt = _conn.prepareStatement(query);\n }else{\n // select where the reportsto is equal to the employeeId parameter\n query += \"WHERE e.ManagerID = ?\" ;\n stmt = _conn.prepareStatement(query);\n stmt.setInt(1, managerId);\n }\n\t\t\t// execute the query into a result set\n\t\t\tResultSet rs = stmt.executeQuery();\n \n\t\t\t// iterate through the result set\n\t\t\twhile(rs.next()) {\t\n\t\t\t\t// create a new employee model object\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\t\n\t\t\t\t// select fields out of the database and set them on the class\n\t\t\t\t//employee.setEmployeeID(rs.getString(\"EmployeeID\"));\n\t\t\t\t//employee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\t//employee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\t//employee.setManagerID(rs.getString(\"ManagerID\"));\n employee.setHasChildren(rs.getInt(\"DirectReports\") > 0); \n\t\t\t\t//employee.setFullName();\n\t\t\t\t\n\t\t\t\t// add the class to the list\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return the result list\n\t\treturn employees;\n\t\t\n\t}", "public WeekAssignmentPerEmployee getOne(Long id) {\n\t\ttry{\n\t\t\t//tx.begin();\n\t\t\tWeekAssignmentPerEmployee weekAssignmentPerEmployee = (WeekAssignmentPerEmployee)em.find(WeekAssignmentPerEmployee.class, id);\n\t //tx.commit();\n\t return weekAssignmentPerEmployee;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tthrow new BusinessException(new ExceptionMessage(\"Failed in WeekAssignmentPerEmployeDao : getOne ...\"));\n\t\t}finally{\n\t\t\tem.close();\n\t\t}\n\n\t\t\n\t}", "@RequestMapping(value = \"/i\", method = RequestMethod.GET)\n\tpublic ModelAndView doUniqueReport(ModelAndView modelAndView, @RequestParam(\"id\") final String reportId) {\n\n\t\tLOGGER.debug(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\t\tLOGGER.info(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tassessmentList = assessmentServices.findByReportId(reportId);\n\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\tLOGGER.info(\"assessmentList.get(0).getUserId() \" + assessmentList.get(0).getUserId());\n\t\tuserList = userServices.findByUserId(assessmentList.get(0).getUserId());\n\t\tLOGGER.info(\"@@@@@@@@@@@@@@userList \" + userList.toString());\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\treturn modelAndView;\n\t}", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "@Override\n\tpublic Employee getEmployeeById(int emp_id) {\n\t\tlog.debug(\"EmplyeeService.getEmployeeById(int emp_id) return Employee object with id\" + emp_id);\n\t\treturn repositary.findById(emp_id);\n\t}", "public String getReport(String booking_id) {\n\t\tString sql = \"select report from bookings where booking_id =?\";\n\t\treturn jdbcTemplate.queryForObject(sql, String.class, booking_id); \n\t}", "public String toString() {\n return \"Employee Id:\" + id + \" Employee Name: \" + name+ \"Employee Address:\" + address + \"Employee Salary:\" + salary;\n }", "public String getEmployee(String empID) throws JsonParseException,\n\t\t\tJsonMappingException, IOException;", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "@GET\n @Path(\"/getEmployeeById/{empId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getEmployeeById(@PathParam(\"empId\") String empId){\n String output = \"\";\n try {\n Employee employee = new Employee();\n employee = EmployeeFacade.getInstance().getEmployeeById(empId);\n output = gson.toJson(employee);\n \n } catch (IOException e) {\n output = \"Error\";\n }\n return output;\n }", "@GetMapping(\"/employee/{id}\")\r\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id)\r\n\t{\r\n\t\tEmployee emp=empdao.findOne(id);\r\n\t\tif(emp == null)\r\n\t\t{\r\n\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\treturn ResponseEntity.ok().body(emp);\r\n\t}", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "String report() {\n StringBuilder sb = new StringBuilder();\n // Header\n for (int i = 0; i < Stat.values().length; i++) {\n if (i > 0) {\n sb.append(\",\");\n }\n sb.append(Stat.values()[i].name);\n }\n // One line per job\n for (JobResult result : jobResults) {\n result.computeMetrics();\n sb.append(\"\\n\").append(result);\n }\n // Include aggregates for jobs and overall\n if (jobTypeResults.containsKey(\"ForwardChain\")) {\n jobTypeResults.get(\"ForwardChain\").computeMetrics();\n sb.append(\"\\n\").append(jobTypeResults.get(\"ForwardChain\"));\n }\n if (jobTypeResults.containsKey(\"DuplicateElimination\")) {\n jobTypeResults.get(\"DuplicateElimination\").computeMetrics();\n sb.append(\"\\n\").append(jobTypeResults.get(\"DuplicateElimination\"));\n }\n totals.computeMetrics();\n sb.append(\"\\n\").append(totals);\n return sb.toString();\n }", "@Override\n public String toString ()\n {\n String format = \"Employee %s: %s , %s\\n Commission Rate: $%.1f\\n Sales: $%.2f\\n\";\n\n return String.format(format, this.getId(), this.getLastName(), this.getFirstName(), this.getRate(), this.getSales());\n }", "@GetMapping(\"/employees/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\tEmployee orElseThrow = repo.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Employee not exist with id \" + id));\n\t\treturn ResponseEntity.ok(orElseThrow);\n\t}", "public abstract String printEmployeeInformation();", "void printReport();", "@RequestMapping(value=\"/employee/getEmployeeById\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic EmployeeModel getEmployeeById1(@RequestParam(\"employeeId\") Integer employeeId, Model model) {\r\n\t\tEmployeeModel employeeModel = employeeService.getEmployeeById(employeeId);\r\n\t\treturn employeeModel;\r\n\t\t/*com.ps.model.Model.MODE = \"Update\";\r\n\t\tmodel.addAttribute(\"employeeData\", employeeModel);\r\n\t\treturn \"search-employee\";*/\r\n\t}", "@GetMapping(\"/one/{id}\")\n\tpublic ResponseEntity<?> getOneEmployee(@PathVariable Integer id) {\n\t\tResponseEntity<?> response = null;\n\t\ttry {\n\t\t\tEmployee employee = service.getOneEmployee(id);\n\t\t\tresponse = new ResponseEntity<Employee>(employee, HttpStatus.OK); // 200\n\t\t} catch (EmployeeNotFoundException enfe) {\n\t\t\tthrow enfe;\n\t\t}\n\t\treturn response;\n\t}", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchadminemployee\")\n\tpublic ModelAndView gettEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"adminemployeedelete.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getEmployee( @NotNull(message = \"Employee ID cannnot be null\")\n @QueryParam(\"empId\") String empId) {\n return null;\n }", "public void setEmployeeId(String employeeId) {\n this.employeeId = employeeId;\n }", "public String displayAllEmployees(){\n String p = \" \";\n \n try {\n \n emprs = stmt.executeQuery \n (\"SELECT * FROM JEREMY.EMPLOYEE\");\n p = loopDBEMPInfo(emprs);\n emprs.close();\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n }\n \n return p;\n}", "public Employee getEmployeeByID(int id) {\n\t\t\r\n\t\ttry {\r\n\t\t\tEmployee f = temp.queryForObject(\"Select * from fm_employees where EID =?\",new EmployeeMapper(),id);\r\n\t\t\treturn f;\r\n\t\t} catch (EmptyResultDataAccessException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@GET\n @Path(\"/getEmployeeByName/{empName}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getEmployeeByName(@PathParam(\"empName\") String empName){\n String output = \"\";\n try {\n Map<String, Employee> employeeMap = new HashMap<String, Employee>();\n employeeMap = EmployeeFacade.getInstance().getEmployeeByName(empName);\n output = gson.toJson(employeeMap);\n \n } catch (IOException e) {\n output = \"Error\";\n }\n return output;\n }", "public static void main(String[] args) throws NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}", "@GET\n\t@Path(\"{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getEmployeeById(@PathParam(\"id\") String id) throws ParseException{\n\t\tString message = \"{}\";\n\t\t\n\t\tJSONObject employeesJsonObject = (JSONObject) parser.parse(getFileContent());\n\t\tJSONArray employeesArray = (JSONArray) employeesJsonObject.get(\"employee\");\n\t\tJSONObject employee;\n\t\t\n\t\t/*checking each employee*/\n\t\tfor ( int i = 0 ; i < employeesArray.size() ; i++ ){\n\t\t\temployee = ((JSONObject) employeesArray.get(i));\n\t\t\t\n\t\t\tif(employee.get(\"id\").toString().equalsIgnoreCase(id)){\n\t\t\t\tmessage = employee.toString();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}", "@GET\n\t@Consumes(\"text/plain\")\n\t@Produces(\"application/json\")\n\t@Path(\"/get/{id}\")\n\tpublic Response getEmployee(@PathParam(\"id\") String id) {\n\t\tid = id.trim();\n\t\tif (bookedTickets.containsKey(id)) {\n\t\t\tMap<String, String> info = new HashMap<>();\n\t\t\tinfo = bookedTickets.get(id);\n\t\t\tTicket ticket = new Ticket();\n\t\t\tticket.setDate(info.get(\"date\"));\n\t\t\tticket.setFoodItems(info.get(\"foodItems\"));\n\t\t\tticket.setSeats(info.get(\"seats\"));\n\t\t\tticket.setShowTime(info.get(\"showTime\"));\n\t\t\tticket.setTheater(info.get(\"theater\"));\n\t\t\tticket.setTicketNo(info.get(\"ticketNo\"));\n\t\t\tticket.setTotalPrice(info.get(\"totalPrice\"));\n\t\t\t\n\t\n\t\t\treturn Response.ok(ticket).build();\n\t\t}\n\n\t\tMessage msg = new Message();\n\t\tmsg.setMessage(\"ID is not registered\");\n\t\treturn Response.ok(msg).build();\n\n\t}", "@GetMapping(\"/getrequirements/{empId}\")\n\t public ResponseEntity<List<Requirement>> getAllRequirements(@PathVariable int empId)\n\t {\n\t\t List<Requirement> fetchedRequirements=employeeService.getAllRequirements(empId);\n\t\t \n\t\t if(fetchedRequirements.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t\t return new ResponseEntity<List<Requirement>>(fetchedRequirements,HttpStatus.OK); \n }", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer s1 = new StringBuffer();\n\t\ts1.append(\"Employee name : \");\n\t\ts1.append(this.name);\n\t\ts1.append(\" Id is: \");\n\t\ts1.append(Integer.toString(this.id));\n\t\ts1.append(\" salary is \");\n\t\ts1.append(Integer.toString(this.salary));\n\t\treturn s1.toString();\n\n\t}", "public String[][] displayEmployee() {\r\n\t\t\t\t\r\n\t\t// Print the employee numbers for the employees stored in each bucket's ArrayList,\r\n\t\t// starting with bucket 0, then bucket 1, and so on.\r\n \r\n if (numInHashTable > 0){\r\n dataTable = new String[numInHashTable][5];\r\n int q = 0;\r\n \r\n for (ArrayList<EmployeeInfo> bucket : buckets){\r\n for (int i = 0; i < bucket.size(); i++){\r\n EmployeeInfo theEmployee = bucket.get(i);\r\n \r\n //display specfically for a PTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof PTE) {\r\n PTE thePTE = (PTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"PTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(thePTE.calcNetAnnualIncome()); \r\n q++;\r\n }\r\n \r\n //display specfically for a FTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"FTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(theFTE.calcNetAnnualIncome());\r\n q++;\r\n } \r\n }\r\n }\r\n }\r\n return dataTable;\r\n }", "public String getReportName() {\r\n return reportName;\r\n }", "@Override\r\n\tpublic Employee getEmployee(int id) {\n\t\treturn employees.stream().filter(emp -> emp.getEmpId()==(id)).findFirst().get();\r\n\t}", "public EmployeeDto getEmployee(Long employeeId) throws ApiDemoBusinessException;", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "@Override\n\tpublic Employee getEmployeeByID(int empid) throws RemoteException {\n\t\treturn DAManager.getEmployeeByID(empid);\n\t}", "public String getReportname() {\n return reportname;\n }", "public int findEmployee(String name){\n log.debug(\"Inside findEmployee Method.\");\n int empID;\n String findEmpSQL = \"SELECT empID FROM employeeDetails WHERE name = \" + \"'\" + name + \"' AND businessID = \" + session.getLoggedInUserId();\n\n log.debug(\"Querying database for employeeID with name\" + name);\n resultSet = database.queryDatabase(findEmpSQL);\n\n try{\n if(resultSet.next()){\n empID = resultSet.getInt(\"empID\");\n log.info(\"Found employeeID: \" + empID);\n log.debug(\"Successfully found empID, returning to controller.\");\n return empID;\n }\n }\n catch (Exception e){\n log.error(e.getMessage());\n }\n log.debug(\"Failed to find empID, returning to controller.\");\n return -1;\n }", "public String f9employee() throws Exception {\r\n\t\t/**\r\n\t\t * BUILD COMPLETE QUERY (ALONG WITH PARAMETERS) WHICH GIVES THE DESIRED\r\n\t\t * OUTPUT ALONG WITH PROFILES\r\n\t\t */\r\n\t\tString query = \"SELECT EMP_TOKEN, EMP_FNAME || ' ' || EMP_MNAME || ' ' || EMP_LNAME,\"\r\n\t\t\t\t+ \" EMP_ID,CENTER_NAME,RANK_NAME\"\r\n\t\t\t\t+ \" FROM HRMS_EMP_OFFC\"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_CENTER ON(HRMS_CENTER.CENTER_ID=HRMS_EMP_OFFC.EMP_CENTER)\"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_RANK ON(HRMS_RANK.RANK_ID=HRMS_EMP_OFFC.EMP_RANK) \";\r\n\r\n\t\tquery += \"\tORDER BY EMP_ID ASC \";\r\n\r\n\t\t/**\r\n\t\t * SET THE HEADER NAMES OF TABLE WHICH IS DISPLAYED IN POP-UP WINDOW. *\r\n\t\t */\r\n\r\n\t\tString[] headers = { getMessage(\"employee.id\"), getMessage(\"employee\") };\r\n\r\n\t\t/**\r\n\t\t * DEFINE THE PERCENT WIDTH OF EACH COLUMN\r\n\t\t */\r\n\t\tString[] headerWidth = { \"15\", \"35\" };\r\n\r\n\t\t/**\r\n\t\t * -SET THE FIELDNAMES INTO WHICH THE VALUES ARE BEING POPULATED AFTER A\r\n\t\t * ROW IS SELECTED. -USEFULL IN CASES WHERE SUBMIT FLAG IS 'false'\r\n\t\t * -PARENT FORM WILL SHOW THE VALUES IN THE FILDS CORRSPONDING TO COLUMN\r\n\t\t * INDEX. NOTE: LENGHT OF COLUMN INDEX MUST BE SAME AS THE LENGTH OF\r\n\t\t * FIELDNAMES\r\n\t\t */\r\n\r\n\t\tString[] fieldNames = { \"searchemptoken\", \"searchempName\",\r\n\t\t\t\t\"searchempId\" };\r\n\r\n\t\t/**\r\n\t\t * SET THE COLUMN INDEX E.G. SUPPOSE THE POP-UP SHOWS 4 COLUMNS, BUT ON\r\n\t\t * CLICKING A ROW ONLY SECOND AND FORTH COLUMN VALUES NEED TO BE SHOWN\r\n\t\t * IN THE PARENT WINDOW FIELDS THEN THE COLUMN INDEX CAN BE {1,3}\r\n\t\t * \r\n\t\t * NOTE: COLUMN NUMBERS STARTS WITH 0\r\n\t\t * \r\n\t\t */\r\n\t\tint[] columnIndex = { 0, 1, 2 };\r\n\r\n\t\t/**\r\n\t\t * WHEN SET TO 'true' WILL SUBMIT THE FORM\r\n\t\t * \r\n\t\t */\r\n\t\tString submitFlag = \"false\";\r\n\r\n\t\t/**\r\n\t\t * IF THE 'submitFlag' IS 'true' , THE FORM WILL SUBMIT AND CALL\r\n\t\t * FOLLOWING METHOD IN THE ACTION * NAMING CONVENSTION: <NAME OF\r\n\t\t * ACTION>_<METHOD TO CALL>.action\r\n\t\t */\r\n\t\tString submitToMethod = \"\";\r\n\r\n\t\t/**\r\n\t\t * CALL THIS METHOD AFTER ALL PARAMETERS ARE DEFINED *\r\n\t\t */\r\n\r\n\t\tsetF9Window(query, headers, headerWidth, fieldNames, columnIndex,\r\n\t\t\t\tsubmitFlag, submitToMethod);\r\n\r\n\t\treturn \"f9page\";\r\n\t}", "@Override\n\tString searchEmployee(String snum) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Empdetails getemp(int empid) {\n\t\treturn empDAO.getemp(empid);\n\t}" ]
[ "0.7504892", "0.63615096", "0.6266831", "0.61725116", "0.6068872", "0.59235626", "0.58765244", "0.5817335", "0.57837754", "0.57475495", "0.57203585", "0.56959045", "0.5692132", "0.5668686", "0.5650965", "0.56271833", "0.55895483", "0.55632186", "0.5554207", "0.5525272", "0.5511863", "0.5508696", "0.55036813", "0.5493897", "0.54905343", "0.5479208", "0.54781485", "0.5469657", "0.54570854", "0.5453387", "0.5450941", "0.54377687", "0.5437021", "0.54318947", "0.54315215", "0.54138327", "0.5409772", "0.5398925", "0.5381607", "0.5368801", "0.53569525", "0.5353308", "0.5351073", "0.5347153", "0.5318149", "0.53170085", "0.53041786", "0.53020394", "0.5292436", "0.5283565", "0.52826315", "0.52737105", "0.52693266", "0.52643055", "0.52573174", "0.52529407", "0.5242076", "0.5240265", "0.52365035", "0.5218207", "0.520881", "0.5202845", "0.5197695", "0.51894325", "0.5175848", "0.5174026", "0.51737434", "0.5172554", "0.5164945", "0.5159309", "0.51528686", "0.5147233", "0.51441574", "0.51353794", "0.5134231", "0.51215166", "0.51202816", "0.5114153", "0.5104677", "0.50955963", "0.50915545", "0.50911033", "0.5088961", "0.5084993", "0.5084147", "0.50826013", "0.5073785", "0.5072269", "0.507223", "0.5071514", "0.5068959", "0.5068408", "0.50510085", "0.50484556", "0.5041058", "0.50392574", "0.5036221", "0.50359553", "0.50349176", "0.50298893" ]
0.7295221
1
getReportByNameDay(,) method takes employeeId, attendanceDate as a inputs and display the working details of an employee on the specified date.
@RequestMapping(value = "/getReportByNameDay", method = RequestMethod.POST) public @ResponseBody String getReportByDay(@RequestParam("employeeId") String employeeId, @RequestParam("attendanceDate") String attendanceDate) { logger.info("inside ReportGenerationController getReportByDay()"); return reportGenerationService.getReportByDay(employeeId, new Date(Long.valueOf(attendanceDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "private void addToDailyReport(String day, double empHours, double empPay)\r\n\t{\r\n\t\t//reset singleDay just in case\r\n\t\tDailyHours singleDay = null;\r\n\t\t\r\n\t\t//call the findEntryByDate method to find the date\r\n\t\tsingleDay = findEntryByDate(day);\r\n\t\t\r\n\t\t//if the date is not found, create a new date object.\r\n\t\tif(singleDay == null)\r\n\t\t{\r\n\t\t\t//date not found, so create a new date object\r\n\t\t\tsingleDay = new DailyHours(day);\r\n\t\t\t\r\n\t\t\t//add the day to our inventory\r\n\t\t\tdailyHourLog.add(singleDay);\r\n\t\t}//end create new day \r\n\t\t\r\n\t\t//add the employee hours and pay to that day\r\n\t\tsingleDay.addHours(empHours);\r\n\t\tsingleDay.addPay(empPay,empHours);\r\n\t}", "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "@RequestMapping(value = \"/getTodayReport\", method = RequestMethod.GET)\r\n public @ResponseBody String getDayWiseReport() {\r\n logger.info(\"in ReportGenerationController getDayWiseReport()\");\r\n\r\n String reportDetails = reportGenerationService.getTodayReport();\r\n\r\n return reportDetails;\r\n }", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "@GetMapping(\"/appointments/date/{id}/{date}\")\n public List<Appointment> getAppointmentByConsultantAndDate(@PathVariable(\"id\")Long id,@PathVariable(\"date\") @DateTimeFormat(iso= DateTimeFormat.ISO.DATE) LocalDate date) {\n return (appointmentService.findAppsByConsultantAndDate(id,date));\n }", "public TimeSheet showfilledTimeSheet(Integer employeeId, Integer projectId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n TimeSheet timeSheet = timeSheetRepository.getTimeSheet(employeeId, projectId, date);\n return timeSheet;\n }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "private String getDayName(int id){\n for(Day day: dayOfTheWeek)\n if(day.getDayID() == id)\n return (day.getDay());\n return(\"Error\");\n }", "@RequestMapping(value = \"/getReportByNameBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByNameDates(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByNameDates()\");\r\n\r\n return reportGenerationService.getReportByNameDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}", "public Employeedetails getEmployeeDetailByName(String employeeId);", "@Override\n\tpublic Optional<LineReport> findReportbyId(int date) {\n\t\treturn null;\n\t}", "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 }", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "public String getOneDayStatistic(String unitId, String groupId,\n\t\t\tString deptId, Date queryDate) {\n\t\tMap<String,String> allAttendance = new HashMap<String,String>();\n\t\tList<OfficeAttendanceGroup> groupList = officeAttendanceGroupService.listOfficeAttendanceGroupByUnitId(unitId);\n\t\tString[] groupIds = new String[groupList.size()];\n\t\tfor(int m=0;m<groupList.size();m++){\n\t\t\tgroupIds[m] = groupList.get(m).getId();\n\t\t}\n\t\tMap<String,List<OfficeAttendanceGroupUser>> groupUserMap = officeAttendanceGroupUserService.getOfficeAttendanceGroupUserMap(groupIds);\n\t\tList<OfficeAttendanceExcludeUser> excludeUsers = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n\t\tSet<String> excludeSet = new HashSet<String>();\n\t\tfor(OfficeAttendanceExcludeUser exclude:excludeUsers){\n\t\t\texcludeSet.add(exclude.getUserId());\n\t\t}\n\t\tif(StringUtils.isNotEmpty(groupId)){\n\t\t\tList<OfficeAttendanceGroupUser> groupUserList = groupUserMap.get(groupId);\n\t\t\tallAttendance = covertOfficeAttendanceInfoMap(groupUserList , excludeUsers);\n\t\t\t\n\t\t}else if(StringUtils.isNotEmpty(deptId)){\n\t\t\tList<User> deptUser = userService.getUsersByDeptId(deptId);\n\t\t\tallAttendance = covertUserMap(deptUser,excludeUsers);\n\t\t}else{\n\t\t\tList<User> unitUser = userService.getUserListByUnitId(unitId, null, User.TEACHER_LOGIN, null);\n\t\t\tallAttendance = covertUserMap(unitUser ,excludeUsers);\n\t\t}\n\t\tSet<String> userSet = allAttendance.keySet();\n\t\tint i =0;\n\t\tString[] userIds = new String[userSet.size()];\n\t\tfor(String s:userSet){\n\t\t\tuserIds[i++] = s;\n\t\t}\n\t\t\n\t\tJSONObject json = new JSONObject();\n//\t\tJSONArray jsonArr = new JSONArray();\n//\t\tJSONObject json2 = null;\n\t\tString[] attendancename = new String[11];\n\t\tInteger[] attendanceNum = new Integer[11];\n//\t\t取该单位下 迟到早退List\n\t\tList<OfficeAttendanceInfo> later = listOfficeAttendanceInfoByDateAndState(unitId, null,null,AttendanceConstants.ATTENDANCE_CLOCK_STATE_1, queryDate);\n\t\tList<OfficeAttendanceInfo> leaveEarly = listOfficeAttendanceInfoByDateAndState(unitId,null,null, AttendanceConstants.ATTENDANCE_CLOCK_STATE_2, queryDate);\n\n\t\tint laterSum = 0;\n\t\tint leaveEarlySum =0;\n\t\tlaterSum = sumLeaveOrLater(allAttendance,later);\n\t\tleaveEarlySum = sumLeaveOrLater(allAttendance,leaveEarly);\n\n\t\tattendancename[0] = \"迟到人数\";\n\t\tattendanceNum[0] = laterSum;\n\t\t\n\n\t\tattendancename[1] = \"早退人数\";\n\t\tattendanceNum[1] = leaveEarlySum;\n\t\tMap<String,String> costomAttendance = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_DEFAULT, queryDate, unitId,null,null);\n\t\tMap<String,String> outWork = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_3, queryDate, unitId,null,null);\n\t\t\n\t\n\t\tint customSum=0;\n\t\tint outWorkSum=0;\n\t\tcustomSum =sumPeople(allAttendance,costomAttendance);\n\t\toutWorkSum =sumPeople(allAttendance,outWork);\n\n\t\tattendancename[2] = \"正常考勤人数\";\n\t\tattendanceNum[2] = customSum;\n\n\t\tattendancename[3] = \"外勤考勤人数\";\n\t\tattendanceNum[3] = outWorkSum;\n\t\n//\t\tList<Teacher> teacherList = teacherService.getTeachers(unitId);\n//\t\tList<OfficeAttendanceExcludeUser> notAddAttendance = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n//\t\tint sumNotAddAttencedance = sumNotAttendance(allAttendance,notAddAttendance,flag);\n//\t\t\n//\t\tint attendanceNum = allAttendance.size() - sumNotAddAttencedance;\n\n\t\tattendancename[5] = \"考勤人数\";\n\t\tattendanceNum[5] = allAttendance.size();\n\t\n\t\tSet<String> applySet = new HashSet<String>();\n\t\tList<OfficeTeacherLeave> leaveList = officeTeacherLeaveService.getQueryList(unitId, userIds, queryDate, queryDate, null, true);\n\t\tint leaveSum =0;\n\t\tfor(OfficeTeacherLeave l:leaveList){\n\t\t\tif(userSet.contains(l.getApplyUserId())){\n\t\t\t\tapplySet.add(l.getApplyUserId());\n\t\t\t\tleaveSum++;\n\t\t\t}\n\t\t}\n\n\t\tattendancename[7] = \"请假人数\";\n\t\t\n\t\tattendanceNum[7] = leaveSum;\n\t\tList<OfficeGoOut> gooutList = officeGoOutService.getListByStarttimeAndEndtime(queryDate, DateUtils.addDay(queryDate, 1), userIds);\n\t\tint goOutSum=0;\n\t\tfor(OfficeGoOut g:gooutList){\n\t\t\tif(userSet.contains(g.getApplyUserId())){\n\t\t\t\tapplySet.add(g.getApplyUserId());\n\t\t\t\tgoOutSum++;\n\t\t\t}\n\t\t}\n\t\tattendancename[8] = \"外出人数\";\n\t\tattendanceNum[8] = goOutSum;\n\t\tList<OfficeBusinessTrip> tripList = officeBusinessTripService.getListByStarttimeAndEndtime(queryDate, queryDate, userIds);\n\t\t\n\t\tMap<String,Set<String>> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, DateUtils.addDay(queryDate, 1));\n\t\tint tripSum = 0;\n\t\tfor(OfficeBusinessTrip t:tripList){\n\t\t\tif(userSet.contains(t.getApplyUserId())){\n\t\t\t\tapplySet.add(t.getApplyUserId());\n\t\t\t\ttripSum++;\n\t\t\t}\n\t\t}\n\n//\t\tMap<String,Integer> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, queryDate);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tint jtGoOutNum = jtGoOutMap.get(format.format(queryDate));\n\t\tattendancename[9] = \"出差人数\";\n\t\tattendanceNum[9] = tripSum;\n\t\tSet<String> jtSet = jtGoOutMap.get(format.format(queryDate));\n\t\tif(jtSet == null) jtSet = new HashSet<String>();\n\t\tattendancename[10] = \"集体外出人数\";\n\t\tattendanceNum[10] = jtSet.size();\n\t\tapplySet.addAll(jtSet);\n\t\t\n\t\tMap<String,String> missCard = getMissingCard(queryDate, unitId, AttendanceConstants.ATTENDANCE_CLOCK_STATE_98 ,null,null);\n\t\tMap<String,String> moreOneCard = getMissingCard(queryDate, unitId, null,null,null);\n\t\t\n\t\t\n\t\tSet<String> missCardSet = missCard.keySet();\n\t\t\n\t\tSet<String> oneMoreCardSet = moreOneCard.keySet();\n\t\tDateInfo info = dateInfoService.getDateInfo(unitId, queryDate);\n\t\tattendancename[4] = \"缺卡人数\";\n\t\tattendancename[6] = \"旷工人数\";\n\t\tif(info != null && \"N\".equals(info.getIsfeast())){\n\t\t\t\n\t\t\t//得到符合条件的 缺卡人数\n\t\t\tmissCardSet.retainAll(userSet);\n\t\t\tSet<String> missRetain = new HashSet<String>(missCardSet);\n\t\t\tmissRetain.retainAll(applySet);\n\t\t\tmissCardSet.removeAll(missRetain);\n\t\t\t\n\t\t\tattendanceNum[4] = missCardSet.size();\n\t\t\t\n\t\t\tapplySet.addAll(oneMoreCardSet);\n\t\t\tint allSum = userSet.size();\n\t\t\tuserSet.retainAll(applySet);\n\t\t\tint notWorkNum = allSum - userSet.size();\n\t\t\tattendanceNum[6] = notWorkNum;\n\t\t}else{\n\t\t\tattendanceNum[4] = 0;\n\t\t\tattendanceNum[6] = 0;\n\t\t}\n//\t\tjson.put(\"yInterval\",max_ds);\n\t\tjson.put(\"legendData\", new String[]{\"人数\"});\n\t\tjson.put(\"xAxisData\", attendancename);\n\t\tjson.put(\"loadingData\", new Integer[][]{attendanceNum});\n\t\treturn json.toString();\n\t}", "private String getEventDate(final int dayNumber)\n\t{\n\t\tString dayOfWeek = \"\" + dayArray[cModel.findDayOfWeek(dayNumber) - 1];\n\t\tint month = cModel.getCalMonth() + 1; //first month is 0\n\t\tint year = cModel.getCalYear();\n\t\t\n\t\treturn dayOfWeek + \" \" + month + \"/\" + dayNumber + \"/\" + year;\n\t}", "private static void salariedEmployeeEarningReport(final SalariedEmployee salariedEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(salariedEmployee.getFirstName()).append(\" \").append(salariedEmployee.getLastName());\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(salariedEmployee.getMonthlySalary() / 4));\r\n\t}", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "void displaySpecifiedDayList();", "public DaySummary getSummaryForDay(String date){\n String[] values = date.split(\"-\");\n int day = Integer.parseInt(values[0]);\n int month = Integer.parseInt(values[1]);\n int year = Integer.parseInt(values[2]);\n\n LocalDateTime localDateTime1 = LocalDateTime.of(year,month,day,0,0);\n LocalDateTime localDateTime2 = LocalDateTime.of(year,month,day+1,0,0);\n\n Date date1 = Date.from( localDateTime1.atZone( ZoneId.systemDefault()).toInstant());\n Date date2 = Date.from( localDateTime2.atZone( ZoneId.systemDefault()).toInstant());\n return daySummaryRepository.findAllBySummaryDateBetween(date1, date2).get(0);\n }", "public String viewByDate(LocalDate date) {\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\n\t\tString str = formatter.format(date);\n\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\t\t\tformatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\t\t\tstr = formatter.format(date);\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tstr = str + \"\\n\\n\" + \"\\t\" + e.sTime + \" - \" + e.eTime + \": \" + e.name;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstr = str + \"\\n\\n\"+\":: No Event Scheduled Yet ::\";\n\t\t}\n\n\t\treturn str;\n\n\t}", "public abstract void generateReport(Date from, Date to, String objectCode);", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "java.lang.String getDatesEmployedText();", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "@RequestMapping(\"/search\")\n public String displayName(HttpServletRequest request,Model model) throws ParseException {\n String dates = request.getParameter(\"dateentered\");\n String male = request.getParameter(\"male\");\n String female = request.getParameter(\"female\");\n model.addAttribute(\"females\", female);\n model.addAttribute(\"males\", male);\n //DateTimeFormatter dTF = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n //DateTimeFormatter shortMonthFormat = DateTimeFormatter.ofPattern(\"dd MMM yyyy\");\n //DateTimeFormatter longFormat = DateTimeFormatter.ofPattern(\"dd MMMM yyyy\");\n //userDate = LocalDate.parse(dates,dTF);\n //DateFormat format2=new SimpleDateFormat(\"EEEE\");\n //String finalDay=format2.format(userDate);\n // System.out.println(finalDay);\n //System.out.println(male);\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date MyDate = newDateFormat.parse(dates);\n //newDateFormat.applyPattern(\"EEEE d MMM yyyy\");\n newDateFormat.applyPattern(\"EEEE\");\n String MyDates = newDateFormat.format(MyDate);\n\n newDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date MyYear = newDateFormat.parse(dates);\n newDateFormat.applyPattern(\"yyyy\");\n String MyYears = newDateFormat.format(MyYear);\n long myyears = Long.parseLong(MyYears);\n System.out.println(MyDates);\n System.out.println(MyYears);\n model.addAttribute(\"days\", dayNamesRepository.findByDays(MyDates));\n\n\n Iterable<Zodiac> zoIt = zodiacRepository.findAll();\n\n for (Zodiac zos : zoIt)\n {\n long id = zos.getId();\n\n long yearC =zos.getYearStart();\n System.out.println(zodiacRepository.findById(id));\n while ( yearC!= myyears || yearC < myyears)\n {\n yearC =yearC + 12;\n\n }\n\n if( yearC == myyears)\n {\n long ids = zos.getId();\n\n model.addAttribute(\"foundzod\", zodiacRepository.findById(ids));\n }\n if(yearC>myyears) {\n break;\n }\n }\n\n\n //Iterable<DayNames> days = dayNamesRepository.findByDays(MyDates);\n /*LocalDate dt = new LocalDate();\n dt.getDayOfWeek();*/\n //DayOfWeek dayOfWeek = dateHistory.getUserDate().getDayOfWeek();\n //DayNames dayNames = new DayNames();\n// if(female.equalsIgnoreCase(\"female\") && male.equalsIgnoreCase(\"male\")){}\n return \"showweek\";\n }", "@RequestMapping(value = \"workoutOfToday\", method = RequestMethod.GET)\n\tpublic String getSpecificDayGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\t//Get parameters\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\t\tDay day = workoutService.getSpecificDay(username, date);\n\n\t\t//Input information from day into view.\n\t\tArrayList<Exercises> exercises = day.getExercises();\n\t\tint numberOfInputs=0;\n\n\t\tfor(int i=0; i<exercises.size();i++){\n\t\t\t numberOfInputs += exercises.get(i).getSet().size();\n\t\t}\n\t\tsession.setAttribute(\"numberOfInputs\",numberOfInputs);\n\t\tmodel.addAttribute(\"exercises\",exercises);\n\n\t\tVIEW_INDEX = \"workoutOfToday\";\n\t\treturn VIEW_INDEX;\n\t}", "public String employeeName(int employeeId) {\n\n String nameOfEmployee = \"\";\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (idField == employeeId) {\n nameOfEmployee = nameField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The selected ID belongs to the following employee: \");\n return nameOfEmployee;\n }", "public static int ConvertDateTimeToReportDay()\n {\n // Create an instance of SimpleDateFormat used for formatting\n // the string representation of date (month/day/year)\n DateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\n // Get the date today using Calendar object.\n Date today = Calendar.getInstance().getTime();\n\n // Using DateFormat format method we can create a string\n // representation of a date with the defined format.\n String reportDate = df.format(today);\n\n return Integer.parseInt(reportDate);\n }", "public void AllWeekAppointmentReport(int weeks)\r\n {\r\n for (int i = 0; i < weeks; i++)\r\n {\r\n for (int j = 0; j < daysPerWeek; j++)\r\n {\r\n for (int k = 0; k < totalSlots; k++)\r\n {\r\n LessonClass a = weekArray[(i)].dayArray[j].dayMap.get(roomNtime[k]);\r\n \r\n // if appointment exists and is parent appointment\r\n if (a != null && a.subject == subjects.PARENT)\r\n {\r\n System.out.println(\"\\n| WEEK: \" + (i+1) + \" | \" + \"DAY: \" + days[j] \r\n + \" | \" + \"TIME: \" + a.time + \"pm | \" + a.room + \" |\");\r\n System.out.println(a.toReport());\r\n System.out.println(\"Visitor offspring ID: \");\r\n \r\n // track if anybody has booked this slot\r\n boolean visitor = false;\r\n \r\n // for each entry in register\r\n for (String s : a.register)\r\n {\r\n if (s != null)\r\n {\r\n System.out.print(s + \"\\n\");\r\n visitor = true;\r\n }\r\n }\r\n // feedback for nobody booked this slot\r\n if (visitor == false)\r\n {\r\n System.out.println(\"No visits booked\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "private DailyHours findEntryByDate(String day)\r\n\t{\r\n\t\t//cycle the dailyHourLog arraylist\r\n\t\tfor(DailyHours singleDay : dailyHourLog)\r\n\t\t{\r\n\t\t\t//selection structure returning true that the date matches \r\n\t\t\tif(singleDay.getDate().equals(day))\r\n\t\t\t{\r\n\t\t\t\treturn singleDay;\r\n\t\t\t\t\t\t\r\n\t\t\t}//end selection structure returning the date equals \r\n\t\t}//end for loop cycling the dailyHourLog ArrayList\r\n\t\t\r\n\t\t//else the value was not found, so return null\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n\n LocalDate today = LocalDate.now();\n System.out.println(\"today = \" + today);\n\n LocalDate tomorrow = today.plus(1, ChronoUnit.DAYS);\n System.out.println(\"tomorrow = \" + tomorrow );\n\n LocalDate yesterday = tomorrow.minusDays(2);\n System.out.println(\"yesterday = \" + yesterday);\n\n LocalDate independenceDay = LocalDate.of(2019, Month.DECEMBER, 11);\n DayOfWeek dayOfWeek = independenceDay.getDayOfWeek();\n System.out.println(\"dayOfWeek = \" + dayOfWeek);\n\n\n\n\n }", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@Override\r\n\tpublic List<Exam> listAllExamsByDate(LocalDate date)\r\n\t{\n\t\treturn null;\r\n\t\t\r\n\t}", "public static String getWeekDay(String date) {\n\t\tSimpleDateFormat dateformatddMMyyyy = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\ttry {\n\t\t\tjava.util.Date dat = dateformatddMMyyyy.parse(date);\n\t\t\tdateformatddMMyyyy.applyPattern(\"EEEE\");\n\t\t\tdate_to_string = dateformatddMMyyyy.format(dat);\n\n\t\t\t// Calendar c = Calendar.getInstance();\n\t\t\t// c.setTime(dat);\n\t\t\t// int dayOfWeek = c.get(Calendar.DAY_OF_WEEK);\n\t\t\t// date_to_string = strDays[dayOfWeek];\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn date_to_string;\n\n\t}", "private Day getDay(String dayName){\n for(Day day: dayOfTheWeek)\n if(dayName.equals(day.getDay()))\n return (day);\n return(new Day());\n }", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tEmployee employees[] = new Employee[4];\n\n\t// Assign objects of Employee to employees declared above\n\t\t\n\t\tSystem.out.println(\"Enter the Date Of Report :\" );\n\t\tString dtReport = Console.readLine();\n\t\t\n\t//\tCreate an object of EmployeeReport\n\n\t// Invoke display() method by passing the employee array\n\t}", "public static void main(String[] args) {\n\t\tint day=Integer.parseInt(args[0]);\n\t\tint month=Integer.parseInt(args[1]);\n\t\tint year=Integer.parseInt(args[2]);\n\t\tint arr[]=dayOfWeek(day, month, year);\n\t\tSystem.out.print(\"It is : \"+arr[0]+\" : \");\n\t\tswitch(arr[0]) {\n\t\tcase 1: System.out.println(\"January\");break;\n\t\tcase 2: System.out.println(\"February\");break;\n\t\tcase 3: System.out.println(\"March\");break;\n\t\tcase 4: System.out.println(\"April\");break;\n\t\tcase 5: System.out.println(\"May\");break;\n\t\tcase 6: System.out.println(\"June\");break;\n\t\tcase 7: System.out.println(\"July\");break;\n\t\tcase 8: System.out.println(\"August\");break;\n\t\tcase 9: System.out.println(\"September\");break;\n\t\tcase 10: System.out.println(\"October\");break;\n\t\tcase 11: System.out.println(\"November\");break;\n\t\tcase 12: System.out.println(\"December\");break;\n\t\tdefault:System.out.println(\"Error In Month\");\n\t\t}\n\t\tSystem.out.print(\"It is : \"+arr[1]+\" : \");\n\t\tswitch(arr[1]) {\n\t\tcase 0: System.out.println(\"Sunday\");break;\n\t\tcase 1: System.out.println(\"Monday\");break;\n\t\tcase 2: System.out.println(\"Tuesday\");break;\n\t\tcase 3: System.out.println(\"Wednesday\");break;\n\t\tcase 4: System.out.println(\"Thursday\");break;\n\t\tcase 5: System.out.println(\"Friday\");break;\n\t\tcase 6: System.out.println(\"Saturday\");break;\n\t\tdefault:System.out.println(\"Error In Month\");\n\t\t}\n\t}", "private static String getDayName(Context context, long dateInMillis) {\n long dayNumber = getDayNumber(dateInMillis);\n long currentDayNumber = getDayNumber(System.currentTimeMillis());\n if (dayNumber == currentDayNumber) {\n return context.getString(R.string.today);\n } else if (dayNumber == currentDayNumber + 1) {\n return context.getString(R.string.tomorrow);\n } else {\n /*\n * Otherwise, if the day is not today, the format is just the day of the week\n * (e.g \"Wednesday\")\n */\n SimpleDateFormat dayFormat = new SimpleDateFormat(\"EEEE\");\n return dayFormat.format(dateInMillis);\n }\n }", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "public String calculateDay(String day) throws ParseException {\n\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEEE\");\r\n\t\tint iYear = Calendar.getInstance().get(Calendar.YEAR);\r\n\t\tint iMonth = Calendar.getInstance().get(Calendar.MONTH) + 1;\r\n\t\tString yourDate = 15 + \"/\" + iMonth + \"/\" + iYear;\r\n\t\t// String string = yourDate;\r\n\t\tDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.ENGLISH);\r\n\t\tDate date = format.parse(yourDate);\r\n\t\tthis.calculatedDay = simpleDateformat.format(date);\r\n\t\t//System.out.println(\"Calculated Day :: \" + this.calculatedDay);\r\n\t\treturn calculatedDay;\r\n\t}", "public String getEmployeeDetails(int employeeId) {\n\treturn employeeService.getEmployeeDetails(employeeId).toString(); \n }", "private String dayName() {\n int arrayDay = (day + month + year + (year/4) + (year/100) % 4) % 7;\n return dayName[arrayDay];\n }", "public static void date(int num) {\n String date = \"\";\n // Tests for what day of the week it is by using modulus to allign with a day.\n if (num%7==0) {\n date = \"Saturday\";\n } else if (num%7 == 1) {\n date = \"Sunday\";\n } else if (num%7 == 2) {\n date = \"Monday\";\n } else if (num%7 == 3) {\n date = \"Tuesday\";\n } else if (num%7 == 4) {\n date = \"Wednesday\";\n } else if (num%7 == 5) {\n date = \"Thursday\";\n } else if (num%7 == 6) {\n date = \"Friday\";\n }\n // Prints name of day inputted date falls on.\n System.out.println(\"That day is a \"+date);\n }", "@RequestMapping(value=\"/selectedReport.pdf\",method=RequestMethod.POST)\n\tpublic ModelAndView getSelectedReport(HttpServletRequest request,Model model)throws Exception {\n\n\t\t\n\t\tString reportname = request.getParameter(\"report_selection\");\n\t\tString date=request.getParameter(\"date\");\n\t\tDate d1=DateUtil.convertDateFromStringtoDate(date);\n\t\tdate=DateUtil.convertInDashedFormat(d1);\n\t\t\n\t\tif(reportname.equals(\"apt_schedule\")){\n\t\t\tList<AppointmentMaster> appointMasterList = new ArrayList<>();\n\t\t\tappointMasterList = appointmentMasterService.selectAllAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(appointMasterList.size() > 0)\n\t\t\treturn new ModelAndView(\"appointmentMastersRpt\", \"appointmentList\", appointMasterList);\n\t\t\telse{\n\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMastersRpt\", \"appointmentList\", appointMasterList);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_reschedule\")){\n\t\t\tList<AppointmentMasterHistory> appointmentHistoryList = appointmentMasterHistoryService.selectAllAppointmentsHistory();\n\t\t\tList<AppointmentMaster> appointmentMasterList = new ArrayList<>(); \n\t\t\tappointmentMasterList = appointmentMasterService.selectAllAppointments(d1);\n\t\t\t\n\t\t\tList<RescheduledReport> reschduledReportList = new ArrayList<>() ;\n\t\t\treschduledReportList = rescheduledReportService.selectRescheduledAppointments(appointmentHistoryList,appointmentMasterList);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(reschduledReportList.size() >0)\n\t\t\t\treturn new ModelAndView(\"AppointmentrescheRpt\" , \"rescheduledReportList\" , reschduledReportList );\n\t\t\telse\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"AppointmentrescheRpt\" , \"rescheduledReportList\" , reschduledReportList );\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_cancelled\")){\n\t\t\tList<AppointmentMaster> cancelledAppointmentMasterList = new ArrayList<>();\n\t\t\tcancelledAppointmentMasterList =appointmentMasterService.selectcancelledAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(cancelledAppointmentMasterList.size() >0)\n\t\t\treturn new ModelAndView(\"appointmentMastercRpt\" , \"cancelledAppointmentMasterList\" , cancelledAppointmentMasterList);\n\t\t\telse{\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMastercRpt\" , \"cancelledAppointmentMasterList\" , cancelledAppointmentMasterList);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"waiting_time_rpt\")){\n\t\t\tList<WaitingTimeModel> listWaitingTime = new ArrayList<>();\n\t\t\t\tlistWaitingTime = \tappointmentMasterService.getWaitingTime(date);\n\t\t\t\tString message = \"There are no records available\";\n\t\t\t\tif(listWaitingTime.size() > 0)\n\t\t\t\t\treturn new ModelAndView(\"waitingTimeRpt\",\"listWaitingTime\",listWaitingTime);\n\t\t\t\telse {\n\t\t\t\t\tmodel.addAttribute(\"message\" , message);\n\t\t\t\t\treturn new ModelAndView(\"waitingTimeRpt\" , \"listWaitingTime\" ,listWaitingTime );\n\t\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"service_time_rpt\")){\n\t\t\t\n\t\t\tList<ServiceTimeModel> listServiceTime = new ArrayList<>();\n\t\t\tlistServiceTime =\tappointmentMasterService.getServiceTime(date);\n\t\t\tString message = \"There are no records available\";\n\t\t\tif(listServiceTime.size() > 0)\n\t\t\treturn new ModelAndView(\"serviceTimeRpt\",\"listServiceTime\",listServiceTime);\n\t\t\telse\n\t\t\t{\n\t\t\t\tmodel.addAttribute(\"message\" , message);\n\t\t\t\treturn new ModelAndView(\"serviceTimeRpt\" , \"listServiceTime\" , listServiceTime);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_late\")){\n\t\t\t\n\t\t\tList<AppointmentMaster> lateAppointmentMasterList = new ArrayList<>();\n\t\t\tlateAppointmentMasterList = appointmentMasterService.selectLateAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(lateAppointmentMasterList.size() >0)\n\t\t\treturn new ModelAndView(\"appointmentMasterlRpt\" , \"lateAppointmentMasterList\" , lateAppointmentMasterList);\n\t\t\telse\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\treturn new ModelAndView(\"appointmentMasterlRpt\" , \"lateAppointmentMasterList\" , lateAppointmentMasterList);\n\t\t}\n\t\t\n\t\telse if(reportname.equals(\"apt_no_show\")){\n\t\t\t\n\t\t\tList<AppointmentMaster> noShowAppointmentMasterList = new ArrayList<>();\n\t\t\tnoShowAppointmentMasterList =appointmentMasterService.selectNoShowAppointments(d1);\n\t\t\tString message = \"There are no records available\" ;\n\t\t\tif(noShowAppointmentMasterList.size() > 0)\n\t\t\treturn new ModelAndView(\"appointmentMasternsRpt\" , \"noShowAppointmentMasterList\" , noShowAppointmentMasterList);\n\t\t\telse{\n\t\t\t\tmodel.addAttribute(\"message\",message);\n\t\t\t\treturn new ModelAndView(\"appointmentMasternsRpt\" , \"noShowAppointmentMasterList\" , noShowAppointmentMasterList);\n\t\t\t}\n\t\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String editAttendanceDetails(HrAttendanceDetailsTO hrAttendanceDetailsTO, String empId) throws ApplicationException {\n long begin = System.nanoTime();\n String message = \"false\";\n int count = 0, compCode = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getCompCode();\n String month = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenMonth(), authBy = hrAttendanceDetailsTO.getAuthBy(), enteredBy = hrAttendanceDetailsTO.getEnteredBy();\n int workingDays = hrAttendanceDetailsTO.getWorkingDays(), presentDays = hrAttendanceDetailsTO.getPresentDays(), absentDays = hrAttendanceDetailsTO.getAbsentDays(),\n attenYear = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenYear();\n double dedDays = hrAttendanceDetailsTO.getDeductDays();\n long overTime = hrAttendanceDetailsTO.getOverTimePeriod();\n HrAttendanceDetailsDAO hrAttendanceDetailsDAO = new HrAttendanceDetailsDAO(em);\n HrPersonnelDetailsDAO hrPersonnelDAO = new HrPersonnelDetailsDAO(em);\n UserTransaction ut = context.getUserTransaction();\n try {\n ut.begin();\n HrPersonnelDetails hrPersonnelDetails = hrPersonnelDAO.findByEmpStatusAndEmpId(compCode, empId, 'Y');\n if (hrPersonnelDetails.getHrPersonnelDetailsPK() != null) {\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue());\n hrAttendanceDetailsPK.setAttenMonth(month);\n hrAttendanceDetailsPK.setAttenYear(attenYear);\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setPostFlag('N');\n List<HrAttendanceDetails> hrAttendanceList = hrAttendanceDetailsDAO.findAttendanceDetailsPostedForMonth(hrAttendanceDetails);\n if (!hrAttendanceList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceList) {\n hrAttenDetailsEntity.setAbsentDays(absentDays);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setWorkingDays(workingDays);\n hrAttenDetailsEntity.setPresentDays(presentDays);\n hrAttenDetailsEntity.setModDate(new Date());\n hrAttenDetailsEntity.setOverTimePeriod(overTime);\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setDeductDays(dedDays);\n hrAttendanceDetailsDAO.update(hrAttenDetailsEntity);\n count++;\n }\n } else {\n ut.rollback();\n return \"Attendance details already posted so can not be updated !\";\n }\n if (count != 0) {\n ut.commit();\n return \"Attendance details Successfully Updated for selected employee. \";\n }\n } else {\n ut.rollback();\n return \"There is no active employee in the company\";\n }\n } catch (DAOException e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n if (e.getExceptionCode().getExceptionMessage().equals(\"NoResultException\")) {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), ex);\n }\n } else {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), ex);\n }\n }\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n }\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for editAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return message;\n }", "private Day getDay(int day, int month) {\n return mainForm.getDay(day, month);\n }", "@GetMapping(value = \"/assessById/{id}\")\n public String getPatientDiabetesAssessmentById(@PathVariable(\"id\") int id, Model model) {\n Patient patient = patientService.findPatientById(id);\n\n if (patient == null) {\n throw new ResourceException(HttpStatus.NOT_FOUND, \"There are no patient with the id : \" + id + \" in the database\");\n }\n\n List<Note> note = practitionerService.findPractitionerNotesHistoryById(id);\n\n PatientMedicalRecord patientMedicalRecord = new PatientMedicalRecord();\n\n patientMedicalRecord.setName(patient.getName());\n patientMedicalRecord.setFamilyName(patient.getFamilyName());\n patientMedicalRecord.setDateOfBirth(patient.getDateOfBirth());\n patientMedicalRecord.setGender(patient.getGender());\n\n List<String> list = new ArrayList<>();\n\n for (Note value : note) {\n list.add(value.getNotesAndRecommendations());\n }\n\n patientMedicalRecord.setNote(list);\n\n Output output = diabetesAnticipatorService.getPatientDiabetesAssessment(patientMedicalRecord);\n\n model.addAttribute(\"output\", output);\n\n return \"patientDiabetesAssessment/output\";\n }", "public static String getDayName(Context context, String dateStr) {\n SimpleDateFormat dbDateFormat = new SimpleDateFormat(Utility.DATE_FORMAT,Locale.ENGLISH);\n try {\n Date inputDate = dbDateFormat.parse(dateStr);\n Date todayDate = new Date();\n\n // If the date is today, return the localized version of \"Today\" instead of the actual\n // day name.\n\n if (WeatherContract.getDbDateString(todayDate).equals(dateStr)) {\n return context.getString(R.string.today);\n } else {\n // If the date is set for tomorrow, the format is \"Tomorrow\".\n Calendar cal = Calendar.getInstance();\n cal.setTime(todayDate);\n cal.add(Calendar.DATE, 1);\n Date tomorrowDate = cal.getTime();\n if (WeatherContract.getDbDateString(tomorrowDate).equals(\n dateStr)) {\n return context.getString(R.string.tomorrow);\n } else {\n // Otherwise, the format is just the day of the week (e.g \"Wednesday\".\n SimpleDateFormat dayFormat = new SimpleDateFormat(\"EEEE\",Locale.ENGLISH);\n return dayFormat.format(inputDate);\n }\n }\n } catch (ParseException e) {\n Log.e(Utility.class.getSimpleName(),\n \"Date invalid exception ! \", e);\n // Couldn't process the date correctly.\n return dateStr;\n }\n }", "private void btnPrintEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintEmployeeActionPerformed\n if(searched == false){\n JOptionPane.showMessageDialog(rootPane, \"Please Perform a search on database first.\");\n return;\n }\n try {\n String report = \"IReports\\\\Employee.jrxml\";\n JasperReport jReport = JasperCompileManager.compileReport(report);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, newHandler.getConnector());\n JasperViewer.viewReport(jPrint, false);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(rootPane, ex.getMessage());\n }\n }", "public static void main(String[] args)throws Exception {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter date in dd-MM-yyyy format :\");\n\t\tString s=sc.nextLine();\n\t\tSystem.out.println(getDay(s));\n\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "public String dayOfWeek()\n {\n\n int m;\n int y;\n\n if (month == 1)\n {\n m = 13;\n y = year - 1;\n }\n else if (month == 2)\n {\n m = 14;\n y = year - 1;\n }\n else\n {\n m = month;\n y = year;\n }\n int k = y % 100;\n int j = y / 100;\n int a = 13 * (m + 1);\n\n if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 0)\n return \"Saturday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 1)\n return \"Sunday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 2)\n return \"Monday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 3)\n return \"Tuesday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 4)\n return \"Wednesday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 5)\n return \"Thursday\";\n else if ((day + a / 5 + k + k / 4 + j / 4 + 5 * j) % 7 == 6)\n return \"Friday\";\n else\n return \"ERROR\";\n }", "private static void writeReport(Map<DayOfWeek, HashMap<String, JobData>> dailyJobs)\n {\n dailyJobs.entrySet().stream()\n // Days of the week : sort ascending\n .sorted((a, b) -> a.getKey().compareTo(b.getKey()))\n .forEachOrdered(day -> \n {\n // calculate total CPU for the day\n double totalDayCp = day.getValue().entrySet().stream()\n .mapToDouble(job -> job.getValue().cpTime)\n .sum();\n // Headings\n System.out.format(\"%n%s%n\", day.getKey().toString());\n System.out.format(\"%-8s %11s %5s %11s%n\", \"Name\", \"CPU\",\n \"CPU%\", \"zIIP\");\n \n day.getValue().entrySet().stream()\n // sort jobs by CPU Time, the comparison is reversed to sort descending\n .sorted((a, b) -> Double.compare(b.getValue().cpTime, a.getValue().cpTime))\n // take top 10 and print information\n .limit(10)\n .forEachOrdered(entry ->\n {\n JobData jobinfo = entry.getValue(); \n // write detail line \n System.out.format(\n \"%-8s %11s %4.0f%% %11s%n\",\n entry.getKey(), // key is jobname\n hhhmmss(jobinfo.cpTime),\n jobinfo.cpTime / totalDayCp * 100,\n hhhmmss(jobinfo.ziipTime)); \n }); \n });\n }", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "public interface DataSource {\n\n Report getSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo);\n\n}", "public static String getDayOfWeek(String dateStr){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = null;\n try {\n date = simpleDateFormat.parse(dateStr);\n DateFormat dateFormat = new SimpleDateFormat(\"EEEE\");\n String dayOfWeek = dateFormat.format(date);\n return dayOfWeek;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }", "public String displayAnniversaryAnnouncement(String daysToAnniversary) {\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n String sql = \"select user from app.user.User user where currentEmployee='true' and curdate()-user.hireDate>300 and (dayofyear(user.hireDate)>=dayofyear(curdate()) and \"\n + \"dayofyear(user.hireDate)<=dayofyear(curdate())+\" + daysToAnniversary + \") or \"\n + \"(dayofyear(user.hireDate)+365>=dayofyear(curdate()) and \"\n + \"dayofyear(user.hireDate)+365<=dayofyear(curdate())+\" + daysToAnniversary + \")\";\n String html = \"\";\n try {\n\n Query query = session.createQuery(sql);\n results = query.list();\n for (int i = 0; i < results.size(); i++) {\n User u = (User) results.get(i);\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n GregorianCalendar hireDate = new GregorianCalendar();\n hireDate.setTime(u.getHireDate());\n int yearsEmployed = currentDate.get(Calendar.YEAR) - hireDate.get(Calendar.YEAR);\n String yearsString = \" years \";\n if (yearsEmployed == 1) {\n yearsString = \" year \";\n }\n html += \"&nbsp;Congratulations, \" + u.getFirstName() + \", on your \" + yearsEmployed + yearsString + \"of employment at Excel Translations!<br>\";\n }\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return html;\n\n }", "public static void main(String[] args) {\n\n LocalDate date = LocalDate.now();\n System.out.println(\"print date- \"+date);\n // print day \n DayOfWeek dow = date.getDayOfWeek();\n System.out.println(\"print day name - \"+ dow);\n int dateNo = date.getDayOfMonth();\n System.out.println(\"print day (number) - \"+ dateNo);\n // print month \n Month monthName = date.getMonth();\n System.out.println(\"print month name - \"+ monthName);\n int monthNo = date.getMonthValue();\n System.out.println(\"print month (Number) - \"+ monthNo);\n // print month \n int year = date.getYear();\n System.out.println(\"print year - \"+ year);\n // print particuller date like birth day\n LocalDate birthDay = LocalDate.of(1990, Month.NOVEMBER, 20);\n System.out.println(\"print particuller date - \"+birthDay);\n }", "public static String getFriendlyDayString(Context context, String dateStr) {\n\n // The day string for forecast uses the following logic:\n // For today: \"Today, June 8\"\n // For tomorrow: \"Tomorrow\"\n // For the next 5 days: \"Wednesday\" (just the day name)\n // For all days after that: \"Mon Jun 8\"\n\n Date todayDate = new Date();\n String todayStr = WeatherContract.getDbDateString(todayDate);\n Date inputDate = WeatherContract.getDateFromDb(dateStr);\n\n // If the date we're building the String for is today's date, the format\n // is \"Today, June 24\"\n\n if (todayStr.equals(dateStr)) {\n\n String today = context.getString(R.string.today);\n\n return context.getString(\n R.string.format_full_friendly_date,\n today,\n getFormattedMonthDay(dateStr));\n } else {\n Calendar cal = Calendar.getInstance();\n cal.setTime(todayDate);\n cal.add(Calendar.DATE, 7);\n String weekFutureString = WeatherContract.getDbDateString(cal.getTime());\n\n if (dateStr.compareTo(weekFutureString) < 0) {\n // If the input date is less than a week in the future, just return the day name.\n return getDayName(context, dateStr);\n } else {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String stringDate = dateFormat.format(inputDate);\n\n if (Locale.getDefault().getLanguage().equals(\"en\")) {\n dateFormat = new SimpleDateFormat(\"MMM dd\", Locale.ENGLISH);\n stringDate = dateFormat.format(inputDate);\n return stringDate;\n }\n\n return currentDate.getdateWithMonthLetters(\n GenerateDates.getyourDate(stringDate));\n\n\n }\n }\n\n }", "@Query(\"SELECT d FROM Day d WHERE date = ?1 and user_id = ?2\")\n Optional<Day> getByUserIDAndDate(LocalDate date, Integer id);", "List<Day> getDays(String userName);", "@RequestMapping(value = \"/download/IPMReportPDF\", method = RequestMethod.GET)\n\tpublic ModelAndView doIndividualIPMReportPDF(ModelAndView modelAndView,\n\t\t\t@RequestParam(\"workmail\") final String email, @RequestParam(\"id\") final Integer assId) {\n\n\t\tLOGGER.debug(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\t\tLOGGER.info(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tuserList = userServices.findByWorkMail(email);\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tassessmentList = assessmentServices.findByUserIdAssId(user.getUserId(), assId);\n\t\t\t// suggestionList = suggestionServices.findByLvlId(1);\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\t\t\t// LOGGER.info(\"dataList \"+dataList.toString());\n\n\t\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\n\t\t\t// Retrieve our data from a custom data provider\n\t\t\t// Our data comes from a DAO layer\n\t\t\t// DemoDAO dataprovider = new DemoDAO();\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\t// Assign the datasource to an instance of JRDataSource\n\t\t\t// JRDataSource is the datasource that Jasper understands\n\t\t\t// This is basically a wrapper to Java's collection classes\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\t// In order to use Spring's built-in Jasper support,\n\t\t\t// We are required to pass our datasource as a map parameter\n\t\t\t// parameterMap is the Model of our application\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\t// parameterMap.put(\"username\", user.getFirstName()+\"\n\t\t\t// \"+user.getLastName());\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\t// pdfReport is the View of our application\n\t\t\t// This is declared inside the /WEB-INF/jasper-views.xml\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\t// Return the View and the Model combined\n\t\treturn modelAndView;\n\t}", "public String getSomeDayInfo(int day){\n\t\tHashMap<String,String> hashMap = getSomeDaydata(day);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(hashMap.get(\"日期\")+\" \"+hashMap.get(\"天气\")+\"\\n\");\n\t\tsb.append(\"最\"+hashMap.get(\"最高温\")+\"\\n\"+\"最\"+hashMap.get(\"最低温\"));\n\t\tsb.append(\"\\n风力:\"+hashMap.get(\"风力\"));\n\n\t\treturn sb.toString();\n\t}", "public String convertDayToString(Date date) {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(date);\n }", "@Path(\"appliedLeave/{empId}\")\r\n\t@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic AppliedLeaveDetails getAppliedLeaveDetails(@PathParam(\"empId\") String empId) {\r\n\t\tAppliedLeaveDetails AppliedLeaveDetails = new AppliedLeaveDetails();\r\n\t\tArrayList<AppliedLeaveDetails> appliedleave = new ArrayList<AppliedLeaveDetails>();\r\n\t\ttry {\r\n\t\t\tappliedleave = getAllAppliedLeaveDetails();\r\n\t\t\tfor (int i = 0; i < appliedleave.size(); i++) {\r\n\r\n\t\t\t\tif (appliedleave.get(i).getEmpId().equalsIgnoreCase(empId)) {\r\n\t\t\t\t\tAppliedLeaveDetails.setEmpId(empId);\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveDescription(appliedleave.get(i).getLeaveDescription());\r\n\t\t\t\t\tAppliedLeaveDetails.setLeaveType(appliedleave.get(i).getLeaveType());\r\n\t\t\t\t\tAppliedLeaveDetails.setStatus(appliedleave.get(i).getStatus());\r\n\t\t\t\t\tAppliedLeaveDetails.setFrom(appliedleave.get(i).getFrom());\r\n\t\t\t\t\tAppliedLeaveDetails.setTo(appliedleave.get(i).getTo());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn AppliedLeaveDetails;\r\n\t}", "@Override\n @Transactional\n public List<CalendarEntry> getActivitiesByPersonAndDay(final Long personId, final LocalDateTime date) {\n return getCalendarEntryRepository().getByPersonIdAndDateFromBetweenOrPersonIdAndDateToBetweenOrderByDateToAsc(\n personId, date, date.plusDays(1), personId, date, date.plusDays(1));\n }", "String getDayofservice();", "public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}", "@Override\t\r\n\tpublic String getDailyWorkout() {\n\t\treturn \"practice 30 hrs daily\";\r\n\t}", "private void dayOfWeek(HplsqlParser.Expr_func_paramsContext ctx) {\n Integer v = getPartOfDate(ctx, Calendar.DAY_OF_WEEK);\n if (v != null) {\n evalInt(v);\n }\n else {\n evalNull();\n }\n }", "public void produceDateFromDay(String dayInput, int plus) {\n LocalDate date = null;\n \n if (plus == 2) {\n date = LocalDate.now().plusWeeks(1);\n } else if (plus == 3) {\n date = LocalDate.now().plusMonths(1);\n } else if (plus == 4) {\n date = LocalDate.now().plusYears(1);\n } else if (plus == 5) {\n date = LocalDate.now();\n } else if (plus == 6) {\n date = LocalDate.now().plusDays(1);\n } else {\n for (int n = 0; n < Constants.DAYS_LIST.length; n++) {\n if (dayInput.toLowerCase().matches(Constants.DAYS_LIST[n])) {\n int days = (n+1) - LocalDate.now().getDayOfWeek().getValue();\n\n if (days >= 0) {\n if (plus == 1) {\n date = LocalDate.now().plusDays(days+7);\n } else {\n date = LocalDate.now().plusDays(days);\n }\n } else {\n date = LocalDate.now().plusDays(days+7);\n }\n\n break;\n }\n }\n }\n startDate = date.getDayOfMonth() + \"/\" + date.getMonthValue() + \"/\" +date.getYear();\n }", "public void printOccupancy(ArrayList<LocalDate> dates, ArrayList<Integer> days) {\n\t\t\tint i = 0;\r\n\t\t\tint nights;\r\n\t\t\tLocalDate buffer;\r\n\t\t\tString month;\r\n\t\t\t\r\n\t\t\tif(!dates.isEmpty()) { //If there are bookings for the room\r\n\t\t\t\twhile(i < dates.size()) {\r\n\t\t\t\t\tbuffer = dates.get(i);\r\n\t\t\t\t\tnights = days.get(i);\r\n\t\t\t\t\tmonth = monthConvert(buffer.getMonthValue());\r\n\t\t\t\t\tSystem.out.print(\" \" + month + \" \" + buffer.getDayOfMonth() + \" \" + nights);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}", "@Override\n\tpublic EmployeeBean getEmployee(int employeeId) {\n\t\tLOGGER.info(\"starts getEmployee method\");\n\t\tLOGGER.info(\"Ends getEmployee method\");\n\t\treturn adminEmployeeDao.getEmployee(employeeId);\n\t}", "@ApiOperation(\n value = \"Calculate the work days for a certain period and person\",\n notes = \"The calculation depends on the working time of the person.\"\n )\n @GetMapping(\"/workdays\")\n @PreAuthorize(SecurityRules.IS_OFFICE)\n public ResponseWrapper<WorkDayResponse> workDays(\n @ApiParam(value = \"Start date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-01\")\n @RequestParam(\"from\")\n String from,\n @ApiParam(value = \"End date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-08\")\n @RequestParam(\"to\")\n String to,\n @ApiParam(value = \"Day Length\", defaultValue = \"FULL\", allowableValues = \"FULL, MORNING, NOON\")\n @RequestParam(\"length\")\n String length,\n @ApiParam(value = \"ID of the person\")\n @RequestParam(\"person\")\n Integer personId) {\n\n final LocalDate startDate;\n final LocalDate endDate;\n try{\n DateTimeFormatter fmt = DateTimeFormatter.ofPattern(RestApiDateFormat.DATE_PATTERN);\n startDate = LocalDate.parse(from, fmt);\n endDate = LocalDate.parse(to, fmt);\n } catch (DateTimeParseException exception) {\n throw new IllegalArgumentException(exception.getMessage());\n }\n\n if (startDate.isAfter(endDate)) {\n throw new IllegalArgumentException(\"Parameter 'from' must be before or equals to 'to' parameter\");\n }\n\n final Optional<Person> person = personService.getPersonByID(personId);\n\n if (!person.isPresent()) {\n throw new IllegalArgumentException(\"No person found for ID=\" + personId);\n }\n\n final DayLength howLong = DayLength.valueOf(length);\n final BigDecimal days = workDaysService.getWorkDays(howLong, startDate, endDate, person.get());\n\n return new ResponseWrapper<>(new WorkDayResponse(days.toString()));\n }", "private static void hourlyEmployeeEarningReport(final HourlyEmployee hourlyEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(hourlyEmployee.getFirstName()).append(\" \").append(hourlyEmployee.getLastName());\r\n\r\n\t\tdouble weeklyPayAmount = 40 * hourlyEmployee.getHourlyRate();\r\n\r\n\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\tif (hourlyEmployee.getWeeklyWorkedHours() > 40) {\r\n\t\t\tdouble overtime = hourlyEmployee.getWeeklyWorkedHours() - 40;\r\n\t\t\tdouble overtimePay = overtime * (hourlyEmployee.getHourlyRate() * 2);\r\n\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t}\r\n\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(weeklyPayAmount));\r\n\t}", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "public static void printCommonReport(String reportName, HashMap<String, Object> hm) throws SQLException, JRException {\n hm.put(\"shopName\", Loading.getShopName());\n Connection con = DatabaseConnection.getDatabaseConnection();\n JasperDesign jsd = JRXmlLoader.load(\"C:\\\\reports\\\\\" + reportName + \".jrxml\"); //src\\\\cazzendra\\\\pos\\\\\n JasperReport jr = JasperCompileManager.compileReport(jsd);\n JasperPrint jp = JasperFillManager.fillReport(jr, hm, con);\n JasperViewer jasperViewer = new JasperViewer(jp, false);\n jasperViewer.setVisible(true);\n }", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "public byte[] readAttendanceExportFile(String empId, String fileName) {\n\n\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t// filePath += \"/\" + fileName +\".xlsx\";\n\n\t\tfilePath += \"/\" + fileName + \".xlsx\";\n\n\t\t// log.debug(\"PATH OF THE READ EXPORT FILE*********\"+filePath);\n\t\tFile file = new File(filePath);\n\t\t// log.debug(\"NAME OF THE READ EXPORT FILE*********\"+file);\n\n\t\tFileInputStream fileInputStream = null;\n\t\tbyte attd_excelData[] = null;\n\n\t\ttry {\n\n\t\t\tFile readJobFile = new File(filePath);\n\t\t\tattd_excelData = new byte[(int) readJobFile.length()];\n\n\t\t\t// read file into bytes[]\n\t\t\tfileInputStream = new FileInputStream(file);\n\t\t\tfileInputStream.read(attd_excelData);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (fileInputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfileInputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn attd_excelData;\n\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/my-events/{id}/type/{alertType}/date/{date}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllEventsByUserAndAlertTypeAndDate(@PathVariable(\"id\") String id,\r\n @DateTimeFormat(pattern = \"yyyy-MM-dd\") @PathVariable(\"date\") Date date,\r\n @PathVariable(\"alertType\") String alertType, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n Calendar c = Calendar.getInstance();\r\n c.setTime(date);\r\n c.add(Calendar.DATE, 1);\r\n c.add(Calendar.SECOND, -1);\r\n Page<Alert> res = alertRepository.findByRefUserAndAlertTypeAndDateTimeBetweenOrderByDateTimeDesc(id, alertType,\r\n date, c.getTime(), pageable);\r\n return res;\r\n }", "public DayOfWeek diaDaSemana(LocalDate d);", "public interface DailyReportService {\n /**\n * 通过时间获取日报表\n * @param dailyRportQueryDTO\n * @return\n */\n List<DailyReportDO> getDailyReportByTime(DailyRportQueryDTO dailyRportQueryDTO);\n}", "@GetMapping(\"/{symbol}/{date}\")\n public ModelAndView daily(@PathVariable(\"symbol\") String symbol, @PathVariable(\"date\") String date) throws ParseException {\n\n Date sdf = new SimpleDateFormat(\"yyyy-MM-dd\").parse(date);\n\n String beginOfTheMonth = date.substring(0, 7) + \"-00\";\n String endOfTheMonth = date.substring(0,7) + \"-31\";\n Map<String, Object> model = new HashMap<>();\n\n try{\n String[] resp = quoteRepository.daily(symbol, sdf).split(\",\");\n Double closingResp = quoteRepository.closingDay(symbol, sdf);\n String[] monthResp = quoteRepository.monthly(symbol, beginOfTheMonth, endOfTheMonth).split(\",\");\n Double closingMonth = quoteRepository.closingMonth(symbol, beginOfTheMonth, endOfTheMonth);\n\n DayRecord dr = new DayRecord(Double.parseDouble(resp[0]), Double.parseDouble(resp[1]), Integer.parseInt(resp[2]), date, symbol);\n DayRecord mr = new DayRecord(Double.parseDouble(monthResp[0]), Double.parseDouble(monthResp[1]), Integer.parseInt(monthResp[2]), beginOfTheMonth, symbol);\n\n model.put(\"daily\", dr);\n model.put(\"closing\", closingResp);\n model.put(\"monthly\", mr);\n model.put(\"closingMonthly\", closingMonth);\n\n\n return new ModelAndView(\"main\", model);\n\n } catch (Exception e) {\n return new ModelAndView(\"error\", model);\n }\n }", "public static void printDay(Day d) {\n\t\t\n\t\tUtility.printString(\"-----------------\\n\");\n\t\tUtility.printString(d.getDay() + \".\" + Utility.weekDayToString(d.getDay()) + \" (\" + d.getKcals() + \" Kcal)\" + \" \\n\");\n\t\t\n\t\t\n\t\tfor(MealTime mt : d.getMealTimes()) {\n\t\t\tprintMealtime(mt);\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic List<Booking> getDetails(String empid) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where employeeId=\"+empid);\n\t\treturn query.list();\n\t}", "@GetMapping(value = \"/assessByFamilyName/{familyName}\")\n public String getPatientDiabetesAssessmentByFamilyName(@PathVariable(\"familyName\") String familyName, Model model) {\n Patient patient = patientService.findPatientByFamilyName(familyName);\n\n if (patient == null) {\n throw new ResourceException(HttpStatus.NOT_FOUND, \"There are no patient with the family name : \" + familyName + \" in the database\");\n }\n\n List<Note> note = practitionerService.findPractitionerNotesHistoryById(patient.getId());\n\n PatientMedicalRecord patientMedicalRecord = new PatientMedicalRecord();\n\n patientMedicalRecord.setName(patient.getName());\n patientMedicalRecord.setFamilyName(patient.getFamilyName());\n patientMedicalRecord.setDateOfBirth(patient.getDateOfBirth());\n patientMedicalRecord.setGender(patient.getGender());\n\n List<String> list = new ArrayList<>();\n\n for (Note value : note) {\n list.add(value.getNotesAndRecommendations());\n }\n\n patientMedicalRecord.setNote(list);\n\n Output output = diabetesAnticipatorService.getPatientDiabetesAssessment(patientMedicalRecord);\n\n model.addAttribute(\"output\", output);\n\n return \"patientDiabetesAssessment/output\";\n }", "public void getNameEvents(Connection connection, StoreData data){\n\t\t//This code prepares a statement to be sent to the database\n\t\tdata.resetSingle();\n\t\tPreparedStatement preStmt=null;\n\t\tString stmt = \"SELECT * FROM Event\";\n\t\t//used to format the date from the database \n\t\tSimpleDateFormat displayDate = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tSimpleDateFormat dbDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString formatSDate = null;\n\t\tString formatEDate = null;\n\t\tString passedName = data.getName();\n\t\t//This try catch is used to get the result set from the database which contains all of the events\n\t\t//with the same name\n\t\ttry{\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(stmt);\n\t\t\tResultSet rs = preStmt.executeQuery();\n\t\t\tStoreData newDay;\n\t\t\t//Loops through the result set to get and store all of the events\n\t\t\twhile(rs.next()){\n\t\t\t\tnewDay = new StoreData();\n\t\t\t\tString name = rs.getString(\"Name\");\n\t\t\t\tString description = rs.getString(\"Description\");\n\t\t\t\tString location = rs.getString(\"Location\");\n\t\t\t\tString date = rs.getString(\"Start_Date\");\n\t\t\t\tString endDate = rs.getString(\"End_Date\");\n\t\t\t\tString sTime = rs.getString(\"Start_Time\");\n\t\t\t\tString eTime = rs.getString(\"End_Time\");\n\t\t\t\tString id = rs.getString(\"id\");\n\t\t\t\t//formats the dates properly\n\t\t\t\ttry {\n\n\t\t\t\t\tformatSDate = displayDate.format(dbDate.parse(date));\n\t\t\t\t\tformatEDate = displayDate.format(dbDate.parse(endDate));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tnewDay.setName(name);\n\t\t\t\tnewDay.setDescription(description);\n\t\t\t\tnewDay.setLocation(location);\n\t\t\t\tnewDay.setDate(formatSDate);\n\t\t\t\tnewDay.setEndDate(formatEDate);\n\t\t\t\tnewDay.setSTime(sTime);\n\t\t\t\tnewDay.setETime(eTime);\n\t\t\t\tnewDay.setID(id);\n\t\t\t\t//stores an event based on name\n\t\t\t\tif(name.equals(passedName)){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Man you got problems now\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }" ]
[ "0.6984639", "0.6731015", "0.66178036", "0.63061583", "0.5852076", "0.58093715", "0.56991297", "0.55881685", "0.55140543", "0.54774606", "0.546892", "0.542951", "0.540616", "0.540305", "0.5340668", "0.5325651", "0.531925", "0.5293567", "0.5281743", "0.5224519", "0.5215599", "0.5214314", "0.51761305", "0.5149148", "0.5145134", "0.5135664", "0.5134354", "0.51122963", "0.5094116", "0.50840336", "0.50802416", "0.50779766", "0.5061363", "0.5057007", "0.50460166", "0.5024803", "0.50237674", "0.50163", "0.5011248", "0.5003258", "0.5000677", "0.4993352", "0.4981451", "0.49792293", "0.49704275", "0.4965464", "0.49583286", "0.49473488", "0.4920775", "0.49114758", "0.49081972", "0.48911873", "0.48884368", "0.48869678", "0.4882293", "0.4858772", "0.48544773", "0.48516476", "0.48512635", "0.48466498", "0.48454496", "0.4844818", "0.48405483", "0.48362622", "0.48341626", "0.4831455", "0.48309666", "0.4828572", "0.48285514", "0.4825553", "0.48220658", "0.48167783", "0.48142868", "0.48129568", "0.47675574", "0.4762966", "0.47618204", "0.47616005", "0.47527066", "0.4748383", "0.47450468", "0.47422603", "0.47400907", "0.47379616", "0.47191375", "0.47162446", "0.47102776", "0.47068453", "0.46937484", "0.4688509", "0.46859404", "0.4683308", "0.46793202", "0.46779186", "0.4677524", "0.4676271", "0.4675831", "0.46744472", "0.46724832", "0.4672455" ]
0.7988355
0
getReportByNameDates(,,) takes employeeId, fromDate, toDate as a inputs and display the working details of an employee on given period of time.
@RequestMapping(value = "/getReportByNameBetweenDates", method = RequestMethod.POST) public @ResponseBody String getReportByNameDates(@RequestParam("employeeId") String employeeId, @RequestParam("fromDate") String fromDate, @RequestParam("toDate") String toDate) { logger.info("inside ReportGenerationController getReportByNameDates()"); return reportGenerationService.getReportByNameDates(employeeId, new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value = \"/getEmployeesReportBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeesReportBetweenDates(\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getEmployeesReportBetweenDates()\");\r\n\r\n return reportGenerationService.getEmployeesReportBetweenDates(new Date(Long.valueOf(fromDate)),\r\n new Date(Long.valueOf(toDate)));\r\n }", "public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }", "@Override\r\n\tpublic List<Report> getReport(Date from,Date to) {\r\n\t\treturn jdbcTemplate.query(SQLConstants.SQL_SELECT_ALL_FOR_SUPERADMIN_FROM_N_TO, new RowMapper<Report>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Report mapRow(ResultSet rs, int arg1) throws SQLException {\r\n\t\t\t\tReport report = new Report();\r\n\t\t\t\treport.setPaymentId(rs.getInt(1));\r\n\t\t\t\t//change the date format\r\n\t\t\t\treport.setPaymentTime(rs.getDate(2));\r\n\t\t\t\treport.setTransactionId(rs.getInt(3));\r\n\t\t\t\treport.setUserId(rs.getInt(5));\r\n\t\t\t\treport.setPayment_by(rs.getString(6));\r\n\t\t\t\treport.setBank_acc_id(rs.getInt(8));\r\n\t\t\t\treport.setAmount(rs.getInt(9));\r\n\t\t\t\treport.setStatus(rs.getInt(10));\r\n\t\t\t\treturn report;\r\n\t\t\t}\r\n\t\t}, from, to);\r\n\t}", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Date from, Date to) {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "public abstract void generateReport(Date from, Date to, String objectCode);", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Date from, Date to) {\n\t\treturn null;\r\n\t}", "public JSONArray getSupervisorReportsData(final String startDate, final String toDate) throws Exception {\n\t\tfinal String endDate = toDate + \" 23:59:59\";\n\t\tfinal List<Object[]> entities = workListDao.getWorklistDataForSupervisorReport(startDate, endDate);\n\t\tfinal JSONArray jsonArray = new JSONArray();\n\t\tfor (Object[] entity : entities) {\n\t\t\tconstructJsonArray(entity, jsonArray);\n\t\t}\n\t\treturn jsonArray;\n\t}", "public Object getReports(String indicatorName, int indicatorId,\n\t\t\tint startTimeperiod, int endTimeperiod);", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "public interface DataSource {\n\n Report getSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo);\n\n}", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "private List<Object[]> getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate,\n endDate)\n .maxResults(SummaryReportService.MAX_VISITED_COMPANIES_RECORD).getResultList();\n }", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "public List<TimeSheet> getTimeSheetByPid(Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheetByPid(pid, startDate, endDate);\n }", "public ArrayList<ReverseChargeListDetail> getReverseChargeListDetailReport(\n\t\t\tString payeeName, FinanceDate fromDate, FinanceDate toDate,\n\t\t\tlong companyId) throws DAOException, ParseException {//\n\t\t// /////////\n\t\t// //////\n\t\t// //////\n\n\t\tSession session = HibernateUtil.getCurrentSession();\n\n\t\tQuery query = session\n\t\t\t\t.getNamedQuery(\"getReverseChargeListDetailReportEntries\")\n\t\t\t\t.setParameter(\"startDate\", fromDate.getDate())\n\t\t\t\t.setParameter(\"endDate\", toDate.getDate())\n\t\t\t\t.setParameter(\"companyId\", companyId);\n\n\t\tMap<String, List<ReverseChargeListDetail>> maps = new LinkedHashMap<String, List<ReverseChargeListDetail>>();\n\n\t\tList list = query.list();\n\t\tIterator it = list.iterator();\n\t\tlong tempTransactionItemID = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tObject[] object = (Object[]) it.next();\n\n\t\t\tif (((String) object[1]) != null\n\t\t\t\t\t&& ((String) object[1]).equals(payeeName)) {\n\n\t\t\t\tReverseChargeListDetail r = new ReverseChargeListDetail();\n\n\t\t\t\tr.setAmount((Double) object[0]);\n\t\t\t\tr.setCustomerName((String) object[1]);\n\t\t\t\tr.setMemo((String) object[2]);\n\t\t\t\tr.setName(payeeName);\n\t\t\t\tr.setNumber((String) object[3]);\n\t\t\t\tr.setPercentage((Boolean) object[4]);\n\t\t\t\tr.setSalesPrice((Double) object[5]);\n\t\t\t\tr.setTransactionId((Long) object[6]);\n\t\t\t\tr.setTransactionType((Integer) object[7]);\n\t\t\t\tr.setDate(new ClientFinanceDate((Long) object[9]));\n\n\t\t\t\tif (maps.containsKey(r.getCustomerName())) {\n\t\t\t\t\tmaps.get(r.getCustomerName()).add(r);\n\t\t\t\t} else {\n\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\treverseChargesList.add(r);\n\t\t\t\t\tmaps.put(r.getCustomerName(), reverseChargesList);\n\t\t\t\t}\n\n\t\t\t\tif (tempTransactionItemID == 0\n\t\t\t\t\t\t|| ((Long) object[12]) != tempTransactionItemID) {\n\n\t\t\t\t\tReverseChargeListDetail r2 = new ReverseChargeListDetail();\n\n\t\t\t\t\ttempTransactionItemID = ((Long) object[12]);\n\n\t\t\t\t\tr2.setAmount((Double) object[8]);\n\t\t\t\t\tr2.setCustomerName((String) object[1]);\n\t\t\t\t\tr2.setDate(new ClientFinanceDate((Long) object[9]));\n\t\t\t\t\tr2.setMemo((String) object[10]);\n\t\t\t\t\tr2.setName((String) object[1]);\n\t\t\t\t\tr2.setNumber((String) object[3]);\n\t\t\t\t\tr2.setPercentage(false);\n\t\t\t\t\tr2.setSalesPrice((Double) object[11]);\n\t\t\t\t\tr2.setTransactionId((Long) object[6]);\n\t\t\t\t\tr2.setTransactionType((Integer) object[7]);\n\n\t\t\t\t\tif (maps.containsKey(r2.getCustomerName())) {\n\t\t\t\t\t\tmaps.get(r2.getCustomerName()).add(r2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\t\treverseChargesList.add(r2);\n\t\t\t\t\t\tmaps.put(r2.getCustomerName(), reverseChargesList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString[] names = new String[maps.keySet().size()];\n\n\t\tmaps.keySet().toArray(names);\n\n\t\tArrays.sort(names, String.CASE_INSENSITIVE_ORDER);\n\n\t\tList<ReverseChargeListDetail> reverseCharges = new ArrayList<ReverseChargeListDetail>();\n\n\t\tfor (String s : names) {\n\n\t\t\treverseCharges.addAll(maps.get(s));\n\t\t}\n\n\t\treturn new ArrayList<ReverseChargeListDetail>(reverseCharges);\n\t}", "public List<TimeSheet> getTimeSheet(Integer eid, Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(eid, pid, startDate, endDate);\n }", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }", "@RequestMapping(\"/getUserReport\")\n public List<BookSale> getUserReport(@RequestParam(\"user_id\")int user_id,\n @RequestParam(\"start\")String start,\n @RequestParam(\"end\")String end) {\n Timestamp time1 = Timestamp.valueOf(start);\n Timestamp time2 = Timestamp.valueOf(end);\n return orderService.getUserReport(user_id, time1, time2);\n }", "public void fillList(int roomid, String inputdateTo, String inputdateFrom) {\n list = new ArrayList();\n Connection cnn = null;\n Statement st = null;\n ResultSet rs = null;\n\n String sql = \"select sche.scheduleID as ID,shift.shiftname as shiftname,lab.roomName as roomName,d.dateword as datework,\"\n + \" we.keyword as keywork,sche.status as status,sche.dateworkID sdateworkID from tbl_schedule as sche inner join \"\n + \" tbl_shiftname as shift on sche.shiftID=shift.shiftID inner \"\n + \" join tbl_labroom as lab on sche.roomID=lab.roomID inner join \"\n + \" tbl_datework as d on sche.dateworkID=d.datewordID inner join \"\n + \" days_week as we on d.dayID=we.dayID where lab.roomID=\" + roomid;\n if (inputdateTo.trim().length() > 3) {\n sql += \" and d.dateword >='\" + inputdateTo + \"'\";\n }\n if (inputdateFrom.trim().length() > 3) {\n sql += \" and d.dateword <='\" + inputdateFrom + \"'\";\n }\n sql += \" order by ID desc \";\n //String connectionURL = \"jdbc:odbc:sem4\";\n try {\n //Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n //cnn = DriverManager.getConnection(connectionURL, \"lab\", \"\");\n cnn = dbconnect.Connect();\n st = cnn.createStatement();\n rs = st.executeQuery(sql);\n int count = 0;\n String ID = \"\";\n String shiftname = \"\";\n String status = \"\";\n String roomName = \"\";\n String datework = \"\";\n String daysweek = \"\";\n int dateworkID = 0;\n SimpleDateFormat formarter = new SimpleDateFormat(\"EE, MMM d,yyyy\");\n while (rs.next()) {\n count = count + 1;\n ID += rs.getInt(\"ID\") + \"/\";\n shiftname += rs.getString(\"shiftname\") + \"/\";\n roomName = rs.getString(\"roomName\");\n\n datework = formarter.format(rs.getDate(\"datework\"));\n daysweek = rs.getString(\"keywork\");\n status += rs.getString(\"status\") + \"/\";\n dateworkID = rs.getInt(\"sdateworkID\");\n int totalShift = cntShiftShow();\n if (count % totalShift == 0) {\n list.add(new classSchedule(ID, shiftname, roomName, datework, daysweek, status, dateworkID));\n ID = \"\";\n shiftname = \"\";\n status = \"\";\n roomName = \"\";\n datework = \"\";\n daysweek = \"\";\n }\n\n }\n } catch (SQLException ex) {\n Logger.getLogger(showSchedule.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public List<GLJournalApprovalVO> getAllPeriod(String ClientId, String FromDate, String ToDate) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT c_period.c_period_id AS ID,to_char(c_period.startdate,'dd-MM-YYYY'),c_period.name,c_period.periodno FROM c_period WHERE \"\n + \" AD_CLIENT_ID IN (\" + ClientId\n + \") and c_period.startdate>=TO_DATE(?) and c_period.enddate<=TO_DATE(?) order by c_period.startdate \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FromDate);\n st.setString(2, ToDate);\n log4j.debug(\"period:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setStartdate(rs.getString(2));\n VO.setName(rs.getString(3));\n VO.setPeriod(rs.getString(4));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "public List<TimeSheet> getTimeSheet(Integer eid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(eid, startDate, endDate);\n }", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "@RequestMapping(value = \"/unitreports/{dept}/{unit}/{fromDate}/{toDate}/\")\n @CrossOrigin\n public String getUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n Enumeration<String> parameterNames = request.getParameterNames();\n Gson gson = new Gson();\n String search = request.getParameter(\"search[value]\");\n String sortColumnIndex = request.getParameter(\"order[0][column]\");\n String sortDir = request.getParameter(\"order[0][dir]\");\n String skip = request.getParameter(\"start\");\n String length = request.getParameter(\"length\");\n String draw = request.getParameter(\"draw\");\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n PaginationDto paginationDto = unitReportService.getUnitsReports(dept,unit,fromDate,toDate,draw,length,skip,sortDir,sortColumnIndex,search);\n\n String jsonString = gson.toJson(paginationDto);\n return jsonString;\n\n }", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }", "public Result getStudyReport(String identifier, String startDateString, String endDateString) {\n UserSession session = getAuthenticatedSession();\n \n LocalDate startDate = getLocalDateOrDefault(startDateString, null);\n LocalDate endDate = getLocalDateOrDefault(endDateString, null);\n \n DateRangeResourceList<? extends ReportData> results = reportService\n .getStudyReport(session.getStudyIdentifier(), identifier, startDate, endDate);\n \n return okResult(results);\n }", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "public List<Reservation>reporteFechas(String date1, String date2){\n\n\t\t\tSimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tDate dateOne = new Date();\n\t\t\tDate dateTwo = new Date();\n\n\t\t\ttry {\n\t\t\t\tdateOne = parser.parse(date1);\n\t\t\t\tdateTwo = parser.parse(date2);\n\t\t\t} catch (ParseException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(dateOne.before(dateTwo)){\n\t\t\t\treturn repositoryR.reporteFechas(dateOne, dateTwo);\n\t\t\t}else{\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\n\t \t\n\t }", "public List<Contact> readEmployeePayrollForGivenDateRange(IOService ioService, LocalDate startDate,\n\t\t\tLocalDate endDate) throws CustomPayrollException {\n\t\tif (ioService.equals(IOService.DB_IO)) {\n\t\t\tthis.employeePayrollList = normalisedDBServiceObj.getEmployeeForDateRange(startDate, endDate);\n\t\t}\n\t\treturn employeePayrollList;\n\t}", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "public static List<LogEntry> getAllByDates ( final String user, final String startDate, final String endDate ) {\n // Parse the start string for year, month, and day.\n final String[] startDateArray = startDate.split( \"-\" );\n final int startYear = Integer.parseInt( startDateArray[0] );\n final int startMonth = Integer.parseInt( startDateArray[1] );\n final int startDay = Integer.parseInt( startDateArray[2] );\n\n // Parse the end string for year, month, and day.\n final String[] endDateArray = endDate.split( \"-\" );\n final int endYear = Integer.parseInt( endDateArray[0] );\n final int endMonth = Integer.parseInt( endDateArray[1] );\n final int endDay = Integer.parseInt( endDateArray[2] );\n\n // Get calendar instances for start and end dates.\n final Calendar start = Calendar.getInstance();\n start.clear();\n final Calendar end = Calendar.getInstance();\n end.clear();\n\n // Set their values to the corresponding start and end date.\n start.set( startYear, startMonth, startDay );\n end.set( endYear, endMonth, endDay );\n\n // Check if the start date happens after the end date.\n if ( start.compareTo( end ) > 0 ) {\n System.out.println( \"Start is after End.\" );\n // Start is after end, return empty list.\n return new ArrayList<LogEntry>();\n }\n\n // Add 1 day to the end date. EXCLUSIVE boundary.\n end.add( Calendar.DATE, 1 );\n\n\n // Get all the log entries for the currently logged in users.\n final List<LogEntry> all = LoggerUtil.getAllForUser( user );\n // Create a new list to return.\n final List<LogEntry> dateEntries = new ArrayList<LogEntry>();\n\n // Compare the dates of the entries and the given function parameters.\n for ( int i = 0; i < all.size(); i++ ) {\n // The current log entry being looked at in the all list.\n final LogEntry e = all.get( i );\n\n // Log entry's Calendar object.\n final Calendar eTime = e.getTime();\n // If eTime is after (or equal to) the start date and before the end\n // date, add it to the return list.\n if ( eTime.compareTo( start ) >= 0 && eTime.compareTo( end ) < 0 ) {\n dateEntries.add( e );\n }\n }\n // Return the list.\n return dateEntries;\n }", "public void populateDataForVisitTimeReport(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n\n // reset\n this.mapCompanyBranchVsListEmployee = new HashMap<>();\n this.mapCompanyBranchVsListOfPurposes = new HashMap<>();\n this.mapCompanyBranchVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchPurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeePurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeeVsVisitTimes = new HashMap<>();\n // init\n for (final String companyCode : companyCodes) {\n for (final String branchCode : SummaryReportService.BRANCHES.keySet()) {\n final String key =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n this.mapCompanyBranchVsListEmployee.put(key, new ArrayList<Integer>());\n this.mapCompanyBranchVsListOfPurposes.put(key, new ArrayList<Short>());\n this.mapCompanyBranchVsVisitTimes.put(key, 0);\n }\n }\n\n final List<Daily_report> listDailyReport = this.getListVisited(startDate, endDate, companyCodes);\n\n for (final Daily_report daily : listDailyReport) {\n final String companyCode = daily.getDai_company_code();\n String branchCode = daily.getDai_point_code();\n\n final int employeeCode = daily.getDai_employee_code();\n final boolean isHQ = daily.getEmployee_mst().getEmp_settle_authority() == AuthorityLevels.HEAD_QUARTER;\n if (isHQ) {\n branchCode = SummaryReportConstants.HQ_CODE;\n }\n final String companyBranchKey =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n\n if (this.mapCompanyBranchVsListEmployee.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListEmployee.get(companyBranchKey).contains(employeeCode)) {\n this.mapCompanyBranchVsListEmployee.get(companyBranchKey).add(employeeCode);\n }\n }\n if (this.mapCompanyBranchVsListOfPurposes.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey)\n .contains(daily.getDai_work_tancode())) {\n this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey).add(daily.getDai_work_tancode());\n }\n }\n if (this.mapCompanyBranchVsVisitTimes.containsKey(companyBranchKey)) {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey,\n this.mapCompanyBranchVsVisitTimes.get(companyBranchKey) + 1);\n }\n else {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey, 0);\n }\n\n final String companyBranchPurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_PURPOSE_KEY_PATTERN, companyCode, branchCode,\n daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchPurposeVsVisitTimes, companyBranchPurposeKey);\n\n final String companyBranchEmployeeKey = String.format(\n SummaryReportService.COMPANY_BRANCH_EMPLOYEE_KEY_PATTERN, companyCode, branchCode, employeeCode);\n this.updateCountersOfMap(this.mapCompanyBranchEmployeeVsVisitTimes, companyBranchEmployeeKey);\n\n final String companyBranchEmployeePurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_EMPLOYEE_PURPOSE_KEY_PATTERN, companyCode,\n branchCode, employeeCode, daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchEmployeePurposeVsVisitTimes, companyBranchEmployeePurposeKey);\n }\n\n }", "List<Employee> findByJoiningDateBetween(LocalDateTime localDateTime, LocalDateTime localDateTime2);", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public ArrayList<Salary> getSalariesByStartDateAndEndDateAndEmployeeId(String startDate,\n String endDate,\n String employeeId) {\n ArrayList<Salary> salaries = new ArrayList<>();\n for (Salary s : allSalaries.values()) {\n if (s.getEmployeeId().equals(employeeId)) {\n try {\n Date start = CalendarUtil.sdfDayMonthYear.parse(startDate);\n Date currentStart = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayBatDau());\n Date end = CalendarUtil.sdfDayMonthYear.parse(endDate);\n Date currentEnd = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayKetThuc());\n if ((start.compareTo(currentStart) <= 0 && currentStart.compareTo(end) <= 0) ||\n start.compareTo(currentEnd) <= 0 && currentEnd.compareTo(end) <= 0) {\n salaries.add(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n return salaries;\n }", "public void outputToExcel(String startTime,String endTime) throws ParseException {\n\t\tDate[] dates = new Date[2];\r\n\t\tif (startTime != null && endTime != null) {\r\n\t\t\t\r\n\t\t\tString dateRange = startTime +\" - \"+endTime;\r\n\t\t\tdates = WebUtil.changeDateRangeToDate(dateRange);\r\n\t\t}else {\r\n\t\t\tdates[0] = null;\r\n\t\t\tdates[1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tList<Profit> profits = profitMapper.getProfit(dates[0], dates[1]);\r\n\t\tList<CourseProfit> courseProfits = courseSelectMapper.getCourseProfit(dates[0],WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<CardProfit> cardProfits = cardFeeMapper.getCardProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<MachineBuyConfig> machineBuyConfigs = machineConfigMapper.getMachineProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\t\r\n\t\tMap<String, String> profitMap = new LinkedHashMap<String, String>();\r\n\t\tprofitMap.put(\"date\", \"时间\");\r\n\t\tprofitMap.put(\"vip\", \"会员收益\");\r\n\t\tprofitMap.put(\"course\", \"课程收益\");\r\n\t\tprofitMap.put(\"mechine\", \"器械支出\");\r\n\t\tprofitMap.put(\"sum\", \"总计\");\r\n\t\tString sheetName = \"财务总表\";\r\n\t\t\r\n\t\tMap<String, String> courseProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcourseProfitMap.put(\"selectTime\", \"时间\");\r\n\t\tcourseProfitMap.put(\"courseName\", \"课程名称\");\r\n\t\tcourseProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcourseProfitMap.put(\"courseCost\", \"课程收益\");\r\n\t\tString courseSheet = \"课程收益\";\r\n\t\t\r\n\t\tMap<String, String> cardProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcardProfitMap.put(\"startTime\", \"时间\");\r\n\t\tcardProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcardProfitMap.put(\"cardType\", \"办卡类型\");\r\n\t\tcardProfitMap.put(\"cardFee\", \"办卡收益\");\r\n\t\tString cardSheet = \"办卡收益(1、年卡会员 2、季卡会员 3、月卡会员)\";\r\n\t\t\r\n\t\tMap<String, String> machineOutMap = new LinkedHashMap<String, String>();\r\n\t\tmachineOutMap.put(\"time\", \"时间\");\r\n\t\tmachineOutMap.put(\"machineName\", \"器械名称\");\r\n\t\tmachineOutMap.put(\"machineBrand\", \"器械品牌\");\r\n\t\tmachineOutMap.put(\"machineCost\", \"单价\");\r\n\t\tmachineOutMap.put(\"machineCount\", \"购买数量\");\r\n\t\tmachineOutMap.put(\"sumCost\", \"支出\");\r\n\t\tString machineSheet = \"器械支出\";\r\n\t\t\r\n\t\tExportExcel.excelExport(profits, profitMap, sheetName);\r\n\t\tExportExcel.excelExport(courseProfits, courseProfitMap, courseSheet);\r\n\t\tExportExcel.excelExport(cardProfits, cardProfitMap, cardSheet);\r\n\t\tExportExcel.excelExport(machineBuyConfigs, machineOutMap, machineSheet);\r\n\t}", "void generateResponseHistory(LocalDate from, LocalDate to);", "public ArrayList<String> populateLogNameList(String from, String to){\r\n\tConnection con=null;\r\n\t\r\n\t\tArrayList<String> testNameList=new ArrayList<String>();\r\n\t\r\n\ttry {\r\n\t\t\r\n con = Connect.prepareConnection();\r\n con.setAutoCommit(false);\r\n ResultSet rs=null;\r\n //count number of records for which processing of sheets has been started or completed\r\n PreparedStatement ps = null; SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\"); \r\n\t\t\r\n\t\tjava.util.Date fromdate = sdf.parse(from); \r\n\t\tjava.sql.Timestamp timest = new java.sql.Timestamp(fromdate.getTime()); \r\n\t\t\r\n\t\tjava.util.Date todate = sdf.parse(to); \r\n\t\tjava.sql.Timestamp timeen = new java.sql.Timestamp(todate.getTime()); \r\n\t\t\r\n ps = con.prepareStatement(\r\n \"SELECT distinct Test_name FROM testheader where (Test_status=? OR Test_status=?) AND Conduct_date BETWEEN ? AND ? order by Test_name\");\r\n ps.setString(1, message.getString(\"processed\"));\r\n ps.setString(2, message.getString(\"processed\"));\r\n ps.setTimestamp(3, timest);\r\n ps.setTimestamp(4, timeen);\r\n \r\n rs = ps.executeQuery();\r\n \r\n \t while(rs.next()){\r\n \t\t testNameList.add(rs.getString(1));\r\n }\r\n \r\n \t con.commit();\r\n \r\n }\r\n catch(Exception e){\r\n \tlog.error(\"error in retrieving test name for log interface \" + e);\r\n }\r\n finally{\r\n \tConnect.freeConnection(con);\r\n }\r\n \treturn testNameList;\r\n \r\n}", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "@Override\n\tpublic List<SwipeDetailResult> getEmpEntries(EmpDetails details) {\n\n\t\tList<SwipeDetails> list = null;\n\t\tMap<String, List<SwipeDetails>> map = null;\n\t\tList<SwipeDetailResult> resultList = new ArrayList<SwipeDetailResult>();\n\t\tList<String> keyList = new ArrayList<>();\n\t\ttry {\n\t\t\tlist = timeSheetDAO.getEmpEntries(details.getEmpHolderNo());\n\t\t\tmap = splitListByDate(list);\n\t\t\tint count = 0;\n\n\t\t\t\n\t\t\tfor (Map.Entry<String, List<SwipeDetails>> entry : map.entrySet()) {\n\t\t\t\t\n\t\t\t\tif ((count < map.size() - 1) || map.size() == 1) {\n\n\t\t\t\t\tSwipeDetailResult reult = findStartEndTimeings(map, keyList);\n\t\t\t\t\treult.setDate(entry.getKey());\n\t\t\t\t\treult.setEmpId(details.getEmpId());\n\t\t\t\t\treult.setHolderNo(details.getEmpHolderNo());\n\t\t\t\t\treult.setEmpName(details.getEmpName());\n\t\t\t\t\t;\n\t\t\t\t\t\n\t\t\t\t\tcount++;\n\t\t\t\t\tresultList.add(reult);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\n\t\t} finally {\n\t\t\tlist = null;\n\t\t\tmap = null;\n\t\t\tkeyList = null;\n\t\t}\n\n\t\treturn resultList;\n\t}", "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 }", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "@ApiOperation(\n value = \"Calculate the work days for a certain period and person\",\n notes = \"The calculation depends on the working time of the person.\"\n )\n @GetMapping(\"/workdays\")\n @PreAuthorize(SecurityRules.IS_OFFICE)\n public ResponseWrapper<WorkDayResponse> workDays(\n @ApiParam(value = \"Start date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-01\")\n @RequestParam(\"from\")\n String from,\n @ApiParam(value = \"End date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-08\")\n @RequestParam(\"to\")\n String to,\n @ApiParam(value = \"Day Length\", defaultValue = \"FULL\", allowableValues = \"FULL, MORNING, NOON\")\n @RequestParam(\"length\")\n String length,\n @ApiParam(value = \"ID of the person\")\n @RequestParam(\"person\")\n Integer personId) {\n\n final LocalDate startDate;\n final LocalDate endDate;\n try{\n DateTimeFormatter fmt = DateTimeFormatter.ofPattern(RestApiDateFormat.DATE_PATTERN);\n startDate = LocalDate.parse(from, fmt);\n endDate = LocalDate.parse(to, fmt);\n } catch (DateTimeParseException exception) {\n throw new IllegalArgumentException(exception.getMessage());\n }\n\n if (startDate.isAfter(endDate)) {\n throw new IllegalArgumentException(\"Parameter 'from' must be before or equals to 'to' parameter\");\n }\n\n final Optional<Person> person = personService.getPersonByID(personId);\n\n if (!person.isPresent()) {\n throw new IllegalArgumentException(\"No person found for ID=\" + personId);\n }\n\n final DayLength howLong = DayLength.valueOf(length);\n final BigDecimal days = workDaysService.getWorkDays(howLong, startDate, endDate, person.get());\n\n return new ResponseWrapper<>(new WorkDayResponse(days.toString()));\n }", "@Override\r\n\tpublic ArrayList<SalesReturnBillPO> getBillsByDate(String from, String to) throws RemoteException {\n\t\tArrayList<SalesReturnBillPO> bills=new ArrayList<SalesReturnBillPO>();\r\n\t\ttry{\r\n\t\t\tStatement s=DataHelper.getInstance().createStatement();\r\n\t\t\tResultSet r=s.executeQuery(\"SELECT * FROM \"+billTableName+\r\n\t\t\t\t\t\" WHERE generateTime>'\"+from+\"' AND generateTime<DATEADD(DAY,1,\"+\"'\"+to+\"');\");\r\n\t\t\twhile(r.next()){\r\n\t\t\t\tSalesReturnBillPO bill=new SalesReturnBillPO();\r\n\t\t\t\tbill.setCustomerId(r.getString(\"SRBCustomerID\"));\r\n\t\t\t\tbill.setDate(r.getString(\"generateTime\").split(\" \")[0]);\r\n\t\t\t\tbill.setId(r.getString(\"SRBID\"));\r\n\t\t\t\tbill.setOperatorId(r.getString(\"SRBOperatorID\"));\r\n\t\t\t\tbill.setOriginalSBId(r.getString(\"SRBOriginalSBID\"));\r\n\t\t\t\tbill.setOriginalSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setRemark(r.getString(\"SRBRemark\"));\r\n\t\t\t\tbill.setReturnSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setSalesManName(r.getString(\"SRBSalesmanName\"));\r\n\t\t\t\tbill.setState(r.getInt(\"SRBCondition\"));\r\n\t\t\t\tbill.setTime(r.getString(\"generateTime\").split(\" \")[1]);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bills.size();i++){\r\n\t\t\t\tStatement s1=DataHelper.getInstance().createStatement();\r\n\t\t\t\tResultSet r1=s1.executeQuery(\"SELECT * FROM \"+recordTableName+\r\n\t\t\t\t\t\t\" WHERE SRRID=\"+bills.get(i).getId()+\";\");\r\n\t\t\t\tArrayList<SalesItemsPO> items=new ArrayList<SalesItemsPO>();\r\n\t\t\t\t\r\n\t\t\t\twhile(r1.next()){\r\n\t\t\t\t\tSalesItemsPO item=new SalesItemsPO(\r\n\t\t\t\t\t\t\tr1.getString(\"SRRComID\"),\r\n\t\t\t\t\t\t\tr1.getString(\"SRRRemark\"),\r\n\t\t\t\t\t\t\tr1.getInt(\"SRRComQuantity\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRPrice\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRComSum\"));\r\n\t\t\t\t\titems.add(item);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbills.get(i).setSalesReturnBillItems(items);;\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bills;\r\n\t}", "@RequestMapping(path = \"/specificDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getIssuesByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\treturn deliveryIssueList.stream().filter(\n\t\t\t\tdeliveryIssue -> !instantIsBetweenDates(\n\t\t\t\t\t\tdeliveryIssue.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "java.lang.String getDatesEmployedText();", "@Override\n public DebitReport getReport(Range<Date> range) {\n\n return DebitReport.builder()\n .debits(\n debitRepository.findByDateBetween(\n range.lowerEndpoint(),\n range.upperEndpoint())\n )\n .build();\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/getReports\")\r\n public List<Reports> getReports() {\r\n\r\n List<Reports> results = reportsRepository.getReportsByDate();\r\n return results;\r\n\r\n }", "private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "String getReportsTo();", "public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "protected List<Daily_report> getListVisited(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C\");\n query.append(\" LEFT JOIN FETCH A.employee_mst D \");\n\n query.append(\" WHERE C.com_delete_flg = 'false' AND D.emp_delete_flg = 'false' \");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n query.append(\" AND C.com_company_code IN (:companyCodes)\");\n query.append(\" ORDER BY C.com_company_code DESC\");\n\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class).setParameter(\"startDate\", startDate)\n .setParameter(\"endDate\", endDate);\n\n typedQuery.setParameter(\"companyCodes\", companyCodes);\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@RequestMapping(value = \"/getAllEmployeesWorkingDetails\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesWorkingDetails() {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesWorkingDetails()\");\r\n\r\n return reportGenerationService.getAllEmployeesWorkingDetails();\r\n }", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "private static HashMap<String, Object> fetchDates(PsJob psJob, HashMap<String, Object> parameterMap) {\n\t\tlogger.debug(\"*** EmployeeTermination.fetchDates()\");\n\t\tif(psJob.getEffectiveDate() != null) {\n\t\t\tSplitDate splitDate = new ErdUtils().new SplitDate(psJob.getEffectiveDate());\n\t\t\tif(\"REH\".equals(psJob.getAction()) && \"REH\".equals(psJob.getActionReason())) {\n\t\t\t\tparameterMap.put(\"rehireYear\", splitDate.getYear());\n\t\t\t\tparameterMap.put(\"rehireMonth\", splitDate.getMonth());\n\t\t\t\tparameterMap.put(\"rehireDay\", splitDate.getDay());\n\t\t\t}\n\t\t\tif(\"TER\".equals(psJob.getAction()) || \"RET\".equals(psJob.getAction()) || \"TWP\".equals(psJob.getAction()) || \"TWB\".equals(psJob.getAction())) {\n\t\t\t\tparameterMap.put(\"terminationYear\", splitDate.getYear());\n\t\t\t\tparameterMap.put(\"terminationMonth\", splitDate.getMonth());\n\t\t\t\tparameterMap.put(\"terminationDay\", splitDate.getDay());\n\t\t\t}\n\t\t}\n\t\treturn parameterMap;\n\t}", "@Override\r\n\tpublic List<DispatchAnalysis> getDispatchDetailsBetween(Date fromDate, Date toDate)\t{\r\n\t\t\r\n\t\tList<DispatchAnalysis> dispatchAnalysisDetails=new ArrayList<>();\r\n\t\tDispatchAnalysis dispatchAnalysis=new DispatchAnalysis();\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\tSystem.out.println(orderDetails);\r\n\t\t//for each order placed, get shipment details\r\n\t\tfor(Order order:orderDetails)\t{\r\n\t\t\tList<Shipment> shipmentDetails=order.getShipments();\r\n\t\t\tSystem.out.println(shipmentDetails);\r\n\t\t\t\r\n\t\t\tfor(Shipment shipment:shipmentDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\tc.setTime(order.getOrderDate());\r\n\t\t\t\tc.add(c.DAY_OF_MONTH, 1);\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysis.setProductName(shipment.getProduct().getProductName());\r\n\t\t\t\tdispatchAnalysis.setMerchantName(shipment.getProduct().getInventory().getMerchant().getMerchantName());\r\n\t\t\t\t//expected dispatch date of the product is one day after order placed\r\n\t\t\t\tdispatchAnalysis.setExpectedDispatchDate(c.getTime());\r\n\t\t\t\tdispatchAnalysis.setActualDispatchDate(shipment.getDispatchDate());\r\n\t\t\t\tdispatchAnalysis.setDeliveryDate(shipment.getDeliveryDate());\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysisDetails.add(dispatchAnalysis);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dispatchAnalysisDetails;\r\n\t}", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "@Override\n\tpublic List<TransactionEntity> displaypassbookByDate(long accountNumber, LocalDate startDate, LocalDate endDate) throws ResourceNotFoundException {\n\t\tOptional<TransactionEntity> accountCheck = passbookDao.getAccountById(accountNumber);\n\t\tList<TransactionEntity> passbook = new ArrayList<TransactionEntity>();\n\t\tif(accountCheck.isPresent())\n\t\t{\n\t\t\tpassbook = passbookDao.displaypassbookByDate1(accountNumber, startDate, endDate);\n\t\t}\n\t\telse\n\t\t\tthrow new ResourceNotFoundException(\"Account does not exist\");\n\n\t\t\n\t\treturn passbook;\n\t}", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "@Override\n\tpublic List<SwipeDetailResult> getSwipeDetails(String startDate, String endDate, String holderNo) {\n\t\tint count = 0;\n\t\tList<SwipeDetails> list = timeSheetDAO.getSwipeDetails(startDate, endDate, holderNo);\n\n\t\t// Split total records by date\n\t\tMap<String, List<SwipeDetails>> map = splitListByDate(list);\n\t\tList<SwipeDetailResult> resultList = new ArrayList<SwipeDetailResult>();\n\t\tList<String> keyList = new ArrayList<>();\n\t\t// Map<String, List<SwipeDetails>> cloneMap = map;\n\t\tfor (Map.Entry<String, List<SwipeDetails>> entry : map.entrySet()) {\n\t\t\t// keyList.add(entry.getKey());\n\t\t\tif ((count < map.size() - 1) || map.size() == 1) {\n\n\t\t\t\tSwipeDetailResult reult = findStartEndTimeings(map, keyList);\n\t\t\t\t// cloneMap.remove(entry.getKey());\n\t\t\t\tcount++;\n\t\t\t\tresultList.add(reult);\n\t\t\t\t// break;\n\t\t\t}\n\t\t}\n\n\t\t// getting start date and time\n\n\t\treturn resultList;\n\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "public interface DailyReportService {\n /**\n * 通过时间获取日报表\n * @param dailyRportQueryDTO\n * @return\n */\n List<DailyReportDO> getDailyReportByTime(DailyRportQueryDTO dailyRportQueryDTO);\n}", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "public List<String> retrieveByDate(List<String> jobId, String userId,\n Calendar startDate, Calendar endDate) throws DatabaseException, IllegalArgumentException;", "@RequestMapping(value = \"/downloadunitreports/{dept}/{unit}/{fromDate}/{toDate}/{search}/\")\n @CrossOrigin\n public byte[] downloadUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate,@PathVariable String search, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n ByteArrayInputStream pdfByteArrayInput = unitReportService.compileReportsIntoPdf(dept,unit,fromDate,toDate,search);\n\n return read(pdfByteArrayInput);\n\n }", "List<Asistencia> getAsistenciasReporte(Integer fclId, Date inicio, Date fin);", "@CrossOrigin(origins = \"http://campsiteclient.herokuapp.com\", maxAge = 3600)\n\t@GetMapping\n\tpublic JSONArray checkAvaibility(@RequestParam(value = \"from\") Optional<String> from,\n\t\t\t@RequestParam(value = \"to\") Optional<String> to) throws java.text.ParseException {\n\n\t\tString startDateStringFormat = from\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(1, new Date())));\n\t\tString endDateStringFormat = to\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(31, new Date())));\n\n\t\tDate startDate = bookingServiceImpl.formatDate(startDateStringFormat);\n\t\tDate endDate = dateUtils.formatDate(endDateStringFormat);\n\n\t\tList<BookingDate> bookedDates = bookingDateRepository.getBooking(startDate, endDate);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (BookingDate bookingDate : bookedDates) {\n\t\t\tDate date = bookingDate.getBookingDate();\n\t\t\tString dateToString = dateUtils.formatDate(date);\n\t\t\tlist.add(dateToString);\n\t\t}\n\n\t\tJSONArray result = bookingServiceImpl\n\t\t\t\t.getAvailableDates(new HashSet<BookingDate>(bookedDates), startDate, endDate);\n\t\treturn result;\n\t}", "Iterable<TableReportEntry> getReportEntries(String reportId, AllTablesReportQuery query);", "public List<Object[]> getReporte(Reporteador reporteadorSeleccionado, Date fechaDesde, Date fechaHasta, int idSucursal)\r\n/* 266: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 267: */ {\r\n/* 268:291 */ reporteadorSeleccionado = cargarDetalle(reporteadorSeleccionado.getId());\r\n/* 269:292 */ Map<Integer, BigDecimal> mapaValorVariables = new HashMap();\r\n/* 270: */ \r\n/* 271:294 */ List<Object[]> resultado = new ArrayList();\r\n/* 272:297 */ for (Iterator localIterator1 = reporteadorSeleccionado.getListaDetalleReporteadorVariable().iterator(); localIterator1.hasNext();)\r\n/* 273: */ {\r\n/* 274:297 */ detalle1 = (DetalleReporteadorVariable)localIterator1.next();\r\n/* 275:298 */ for (DetalleReporteadorVariable detalle2 : reporteadorSeleccionado.getListaDetalleReporteadorVariable()) {\r\n/* 276:299 */ if ((detalle2.isIndicadorFormula()) && \r\n/* 277:300 */ (detalle2.getExpresion().contains(detalle1.getCodigo()))) {\r\n/* 278:301 */ detalle2.getListaDetalleVariablesExpresion().add(detalle1);\r\n/* 279: */ }\r\n/* 280: */ }\r\n/* 281: */ }\r\n/* 282: */ DetalleReporteadorVariable detalle1;\r\n/* 283:307 */ resultado.addAll(getReporteRecursivo(reporteadorSeleccionado, null, fechaDesde, fechaHasta, idSucursal, 0, mapaValorVariables));\r\n/* 284: */ \r\n/* 285:309 */ return resultado;\r\n/* 286: */ }", "public ArrayList<String> populateResultNameList(String from, String to){\r\n\tConnection con=null;\r\n\r\n\t\tArrayList<String> testNameList=new ArrayList<String>();\r\n\t\r\n\ttry {\r\n\t\t\r\n con = Connect.prepareConnection();\r\n con.setAutoCommit(false);\r\n ResultSet rs = null;\r\n\r\n PreparedStatement ps = null;\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\"); \r\n\t\t\r\n\t\tjava.util.Date fromdate = sdf.parse(from); \r\n\t\tjava.sql.Timestamp timest = new java.sql.Timestamp(fromdate.getTime()); \r\n\t\t\r\n\t\tjava.util.Date todate = sdf.parse(to); \r\n\t\tjava.sql.Timestamp timeen = new java.sql.Timestamp(todate.getTime()); \r\n\t\t\r\n ps = con.prepareStatement(\r\n \"select Test_name from testheader where ResultDisplayedFrom<=now() AND ResultDisplayedTo >=now() AND Test_Status=? AND Conduct_date BETWEEN ? AND ? order By Test_name\");\r\n ps.setString(1, message.getString(\"processed\"));\r\n ps.setTimestamp(2, timest);\r\n ps.setTimestamp(3, timeen);\r\n \r\n rs = ps.executeQuery();\r\n \r\n \t while(rs.next()){\r\n \t\t testNameList.add(rs.getString(1));\r\n }\r\n con.commit();\r\n \r\n }\r\n catch(Exception e){\r\n \tlog.error(\"error in retrieving test name for result \" + e);\r\n }\r\n finally{\r\n \tConnect.freeConnection(con);\r\n }\t\r\n return testNameList;\r\n }", "List<Employee> allEmpInfo();", "@Transactional(readOnly = true)\n public List<Employee> findBetween(Date firstBirthDate, Date lastBirthDate) {\n logger.debug(\"find employee range : {}\", SearshRange(firstBirthDate, lastBirthDate));\n return employeeDao.findBetween(firstBirthDate, lastBirthDate);\n }", "public void searchHotelReservations(Connection connection, String hotel_name, int branchID, LocalDate checkIn, LocalDate checkOut) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT c_id, res_num, check_in, check_out FROM Booking WHERE hotel_name = ? AND branch_ID = ? AND check_in >= to_date(?, 'YYYY-MM-DD') AND check_out <= to_date(?, 'YYYY-MM-DD')\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n\n if (checkIn == null && checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkIn == null){\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, checkOut.toString());\n }\n else {\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, checkOut.toString());\n }\n\n try {\n\n System.out.printf(\" Reservations for %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\" \" + rs.getString(1) + \" \" + rs.getInt(2));\n System.out.println(\" Reservation DATES: \" + rs.getDate(3) + \" TO \" + rs.getDate(4));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "List<Map<String, Object>> betweenDateFind(String date1, String date2) throws ParseException;", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "@RequestMapping(value = \"/v1/getAllPendingRequests\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<MyRequestReportResponse>> getAllPendingRequests(\n\t\t\t@RequestParam(value = \"fromDate\", required = false) String fromDate,\n\t\t\t@RequestParam(value = \"toDate\", required = false) String toDate,\n\t\t\t@RequestHeader(\"x-location-name\") String locationName)\n\t\t\tthrows SystemException {\n\t\tLOGGER.info(\"Invoking getAllPendingRequests api...\");\n\t\tLOGGER.info(\"Entered locationName :\" + locationName);\n\t\tErrorMessage errMsg = new ErrorMessage();\n\t\tList<MyRequestReportResponse> myRequestReportResponses = null;\n\n\t\t// validate location name\n\t\tif (!validationUtils.isValidateLocation(locationName, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\t// validating dates if passed in request\n\t\tif (!validationUtils.validateDates(fromDate, toDate, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\ttry {\n\n\t\t\tmyRequestReportResponses = requestService.getAllPendingRequests(\n\t\t\t\t\tlocationName, fromDate, toDate);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tLOGGER.error(\"Error getting while processing request to get allPendingRequests from inventory \"\n\t\t\t\t\t+ e);\n\t\t\tthrow new SystemException(Constants.FIVE_THOUSAND_SEVEN,\n\t\t\t\t\tConstants.INTERNAL_SERVER_ERROR,\n\t\t\t\t\tHttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t\treturn new ResponseEntity<List<MyRequestReportResponse>>(\n\t\t\t\tmyRequestReportResponses, HttpStatus.ACCEPTED);\n\t}" ]
[ "0.761109", "0.72355574", "0.6658584", "0.64641523", "0.6398132", "0.638011", "0.6358294", "0.63503027", "0.6298585", "0.620521", "0.61943394", "0.61058766", "0.609991", "0.6089046", "0.60182774", "0.5961501", "0.59210205", "0.5913981", "0.5911838", "0.58535045", "0.5827182", "0.5822055", "0.58218265", "0.57974946", "0.5723026", "0.5717716", "0.57159454", "0.5682266", "0.5681519", "0.5673261", "0.56511384", "0.5617448", "0.56102747", "0.5606174", "0.5601388", "0.5590054", "0.558802", "0.5581625", "0.5535471", "0.5534605", "0.5534156", "0.55271477", "0.55267584", "0.55200475", "0.55076706", "0.5493085", "0.54777664", "0.5460661", "0.5448655", "0.5447611", "0.5445928", "0.544283", "0.5437676", "0.5429425", "0.54210305", "0.54179937", "0.54144865", "0.54079854", "0.5390635", "0.53823775", "0.535303", "0.535013", "0.53400606", "0.5333865", "0.5333189", "0.5327773", "0.5315129", "0.53034633", "0.52869296", "0.52762794", "0.52588826", "0.52571887", "0.5249973", "0.5248328", "0.5238918", "0.5234166", "0.522927", "0.5228238", "0.5226923", "0.5226862", "0.52195823", "0.52038896", "0.51972044", "0.5196224", "0.51606673", "0.51583886", "0.51503307", "0.5137919", "0.5136378", "0.51348853", "0.5131324", "0.512792", "0.51252884", "0.51052153", "0.5100713", "0.5099241", "0.5094632", "0.5085712", "0.5083817", "0.5083632" ]
0.7972419
0
getAllEmployeesWorkingDetails() method will display working details of all employees.
@RequestMapping(value = "/getAllEmployeesWorkingDetails", method = RequestMethod.POST) public @ResponseBody String getAllEmployeesWorkingDetails() { logger.info("inside ReportGenerationController getAllEmployeesWorkingDetails()"); return reportGenerationService.getAllEmployeesWorkingDetails(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees = employeeControllerRemote.retrieveAllEmployees();\n\n employees.forEach((employee) -> {\n System.out.println(\"Employee ID: \" + employee.getEmployeeId() + \"First Name: \" + employee.getFirstName() + \"Last Name: \" + employee.getLastName() + \"Job Role: \" + employee.getJobRole().toString() + \"Username: \" + employee.getUserName() + \"Password: \" + employee.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "@RequestMapping(path = \"/employee\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic List<Employee> displayEmployee() {\r\n\t\treturn er.findAll();\r\n\t}", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}", "public void listEmployees() {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tList employees = session.createQuery(\"FROM Employee\").list();\n\t\t\tfor (@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iterator = employees.iterator(); iterator.hasNext();) {\n\t\t\t\tEmployee employee = (Employee) iterator.next();\n\t\t\t\tSystem.out.print(\"First Name: \" + employee.getFirstName());\n\t\t\t\tSystem.out.print(\" Last Name: \" + employee.getLastName());\n\t\t\t\tSystem.out.println(\" Salary: \" + employee.getSalary());\n\t\t\t}\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public List<TimeInformation> getAllEmployeesTimeInformation() {\r\n\t\tList<TimeInformation> employeeTimeInformation = repository.findAll();\r\n\t\tif(employeeTimeInformation.size() > 0) {\r\n\t\t\treturn employeeTimeInformation;\r\n\t\t} else {\r\n\t\t\treturn new ArrayList<TimeInformation>();\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Employee> viewAllEmployees() {\n\t\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\t\t CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);\n\t\t Root<Employee> rootEntry = cq.from(Employee.class);\n\t\t CriteriaQuery<Employee> all = cq.select(rootEntry);\n\t \n\t\t TypedQuery<Employee> allQuery = em.createQuery(all);\n\t\t return allQuery.getResultList();\n\t}", "public void displayEmployees(){\n System.out.println(\"NAME --- SALARY --- AGE \");\n for (Employee employee : employees) {\n System.out.println(employee.getName() + \" \" + employee.getSalary() + \" \" + employee.getAge());\n }\n }", "List<Work> getAllWorks();", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "public HashMap<Integer, Employee> viewAllEmployee() {\r\n\t\treturn employee1;\r\n\t}", "@GetMapping(\"/my-employee\")\n\t@Secured(Roles.BOSS)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAllMyEmployees() {\n\t\tLogStepIn();\n\n\t\t// Gets the currently logged in user's name\n\t\tString username = SecurityContextHolder.getContext().getAuthentication().getName();\n\t\tLong bossId = userRepository.findByName(username).getEmployee().getId();\n\n\t\t// Adds the employees that directly belongs to this boss\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tfor(Employee employee : employeeList) {\n\t\t\tif(employee.getBossId().equals(bossId))\n\t\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}", "@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}", "public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }", "public List<EmployeeTO> getAllEmployees() {\n\t\t\r\n\t\treturn EmployeeService.getInstance().getAllEmployees();\r\n\t}", "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "public String f9employee() throws Exception {\r\n\t\tString query = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN, \"\r\n\t\t\t\t+ \"\tHRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME ,HRMS_EMP_OFFC.EMP_ID,\"\r\n\t\t\t\t+ \"\tHRMS_EMP_OFFC.EMP_DIV,NVL(DIV_NAME,' ') FROM HRMS_EMP_OFFC \"\r\n\t\t\t\t+ \"\tINNER JOIN HRMS_CENTER ON HRMS_CENTER.CENTER_ID = HRMS_EMP_OFFC.EMP_CENTER\"\r\n\t\t\t\t+ \"\tINNER JOIN HRMS_DIVISION ON (HRMS_DIVISION.DIV_ID = HRMS_EMP_OFFC.EMP_DIV)\";\r\n\t\t\t\tquery += getprofileQuery(bulkForm16);\r\n\t\t\t\tquery += \"\tORDER BY HRMS_EMP_OFFC.EMP_ID\";\r\n\r\n\t\tString[] headers = { getMessage(\"employee.id\"), getMessage(\"employee\") };\r\n\r\n\t\tString[] headerWidth = { \"30\", \"70\" };\r\n\r\n\t\tString[] fieldNames = { \"empToken\", \"empName\", \"empId\",\r\n\t\t\t\t\"divisionId\", \"divisionName\" };\r\n\r\n\t\tint[] columnIndex = { 0, 1, 2, 3, 4 };\r\n\r\n\t\tString submitFlag = \"false\";\r\n\r\n\t\tString submitToMethod = \"\";\r\n\t\tsetF9Window(query, headers, headerWidth, fieldNames, columnIndex,\r\n\t\t\t\tsubmitFlag, submitToMethod);\r\n\r\n\t\treturn \"f9page\";\r\n\t}", "List<Employee> allEmpInfo();", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "public String getAllEmployees() {\n\t\t\n\t\tString allEmployees = \"\\n\";\n\t\t\n\t\tfor(AbsStaffMember staffMember : repository.getAllMembers())\n\t\t{\n\t\t\tallEmployees += \"\\t- \" + staffMember.getName() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn allEmployees;\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Employee> findAllEmployees() {\n\t\treturn employeeRepository.findAllEmployess();\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Transactional(readOnly = true)\r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\treturn em.createQuery(\"select e from Employee e order by e.office_idoffice\").getResultList();\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employeeDao.getAllEmployee();\r\n\t}", "public NSArray hoursWorked() {\n\t\tNSArray hoursWorked;\n\t\tNSDictionary resolutionBindings = new NSDictionary(new Object[] {bugId()}, new Object[] { \"bugId\",});\n\n\t\tEOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed( \"hoursWorked\", \"BugsActivity\").fetchSpecificationWithQualifierBindings( resolutionBindings );\n\t\tfs.setRefreshesRefetchedObjects(true);\n\t\thoursWorked = (NSArray)editingContext().objectsWithFetchSpecification(fs);\n\t\t//System.out.println(\"\\tItem.hoursWorked() count - \" + hoursWorked.count());\n\n\t\treturn hoursWorked;\n\n }", "public List<Employee> getEmployeesOnly() {\n\t\treturn edao.listEmployeOnly();\n\t}", "public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}", "@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}", "public static void printEmployees() {\n List<Employee> employees = null;\n try {\n employees = employeeRepository.getAll(dataSource);\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n if (employees.isEmpty()) {\n System.out.println(\"\\n\" + resourceBundle.getString(\"empty.list\") + \"\\n\");\n LOGGER.warn(\"The list of employees is empty\");\n return;\n }\n System.out.println();\n employees.forEach(System.out::println);\n }", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "@Transactional\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn accountDao.getAllEmployee();\n\t}", "public String getEmployees(){\n return employees;\n }", "public void listAll(){\n /*\n for(int i=0;i<employeesList.size();i++){\n System.out.println(i);\n Employee employee=(Employee)employeesList.get(i);\n System.out.print(employeesList.get(i));\n */ \n \n \n //for used to traverse employList in order to print all employee's data\n for (int i = 0; i < employeesList.size(); i++) {\n System.out.println(\"Name: \" + employeesList.get(i).getName()); \n System.out.println(\"Salary_complement: \"+employeesList.get(i).getSalary_complement()); \n \n }\n \n \n }", "public List<Employee> list() {\n\t\t\treturn employees;\n\t\t}", "@Override\n\tpublic List<EmployeeBean> getEmployeeList() throws Exception {\n\t\treturn employeeDao.getEmployeeList();\n\t}", "public String getWorkHours() {\r\n\t\treturn workHours;\r\n\t}", "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}", "public ViewObjectImpl getEmployees() {\n return (ViewObjectImpl)findViewObject(\"Employees\");\n }", "@RequestMapping(value = \"/employeesList\", method = RequestMethod.GET, produces = {\"application/xml\", \"application/json\" })\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic @ResponseBody\n\tEmployeeListVO getListOfAllEmployees() {\n\t\tlog.info(\"ENTERING METHOD :: getListOfAllEmployees\");\n\t\t\n\t\tList<EmployeeVO> employeeVOs = employeeService.getListOfAllEmployees();\n\t\tEmployeeListVO employeeListVO = null;\n\t\tStatusVO statusVO = new StatusVO();\n\t\t\n\t\tif(employeeVOs.size()!=0){\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_0);\n\t\t\tstatusVO.setMessage(AccountantConstants.SUCCESS);\n\t\t}else{\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_1);\n\t\t\tstatusVO.setMessage(AccountantConstants.NO_RECORDS_FOUND);\n\t\t}\n\t\t\n\t\temployeeListVO = new EmployeeListVO(employeeVOs, statusVO);\n\t\t\n\t\tlog.info(\"EXITING METHOD :: getListOfAllEmployees\");\n\t\treturn employeeListVO;\n\t}", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "@Override\n public List<Employee> getAllEmployees() {\n return null;\n }", "@Override\n\tpublic List<Empdetails> getemplist() {\n\t\treturn empDAO.getemplist();\n\t}", "public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}", "public List<WorkerDetailsVo> workerGridDetails(String customerId,String companyId,String vendorId,String status,String workerCode, String workerName,String workerId);", "public List<Employee> getAllEmployees(){\n\t\tFaker faker = new Faker();\n\t\tList<Employee> employeeList = new ArrayList<Employee>();\n\t\tfor(int i=101; i<=110; i++) {\n\t\t\tEmployee myEmployee = new Employee();\n\t\t\tmyEmployee.setId(i);\n\t\t\tmyEmployee.setName(faker.name().fullName());\n\t\t\tmyEmployee.setMobile(faker.phoneNumber().cellPhone());\n\t\t\tmyEmployee.setAddress(faker.address().streetAddress());\n\t\t\tmyEmployee.setCompanyLogo(faker.company().logo());\n\t\t\temployeeList.add(myEmployee);\n\t\t}\n\t\treturn employeeList;\n\t}", "@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }", "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }", "public List<EmployeeDetails> getEmployeeDetails();", "@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}", "List<WorkingSchedule> getAll();", "public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}", "@GetMapping(\"/getEmployees\")\n\t@ResponseBody\n\tpublic List<Employee> getAllEmployees(){\n\t\treturn employeeService.getEmployees();\n\t}", "public List<Employe> findAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Map<String, String>> employeeList() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getEmpInfo() {\n\t\treturn null;\n\t}", "public List<EmpEachShift> getAll(){\n\t\treturn empEachShiftList;\n\t}", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "private static void printEmployeeDetails(final List<Employee> employeeDetails) {\r\n\t\tString headerFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tString rowFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Employee details:\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tSystem.out.format(headerFormat, \"Name\", \"Class\", \"Hours\", \"Sales\", \"Rate\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tfor (Employee employee : employeeDetails) {\r\n\t\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\t\temployeeName.append(employee.getFirstName()).append(\" \").append(employee.getLastName());\r\n\r\n\t\t\tif (employee.getClassType().equalsIgnoreCase(\"Salaried\")) {\r\n\r\n\t\t\t\tdouble monthlySalary = ((SalariedEmployee) employee).getMonthlySalary();\r\n\t\t\t\tboolean isRewarded = employee.isRewarded();\r\n\t\t\t\tif (isRewarded) {\r\n\t\t\t\t\tmonthlySalary += monthlySalary * 0.1;\r\n\t\t\t\t}\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(formatter.format(monthlySalary / 4));\r\n\t\t\t\tsb.append(isRewarded ? \"*\" : \"\");\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", \"\", \"\", sb.toString());\r\n\r\n\t\t\t} else if (employee.getClassType().equalsIgnoreCase(\"Hourly\")) {\r\n\r\n\t\t\t\tdouble weeklyWorkedHours = ((HourlyEmployee) employee).getWeeklyWorkedHours();\r\n\t\t\t\tdouble hourlyRate = ((HourlyEmployee) employee).getHourlyRate();\r\n\t\t\t\tdouble weeklyPayAmount = 40 * ((HourlyEmployee) employee).getHourlyRate();\r\n\r\n\t\t\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\t\t\tif (((HourlyEmployee) employee).getWeeklyWorkedHours() > 40) {\r\n\t\t\t\t\tdouble overtime = ((HourlyEmployee) employee).getWeeklyWorkedHours() - 40;\r\n\t\t\t\t\tdouble overtimePay = overtime * (((HourlyEmployee) employee).getHourlyRate() * 2);\r\n\t\t\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), weeklyWorkedHours, \"\", formatter.format(hourlyRate), formatter.format(weeklyPayAmount));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tdouble weeklySales = ((CommissionedEmployee) employee).getWeeklySales();\r\n\t\t\t\tdouble commissionRate = ((CommissionedEmployee) employee).getCommissionRate();\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", formatter.format(weeklySales), \"\", formatter.format(weeklySales * commissionRate));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nNote: * A 10% bonus is awarded\\n\");\r\n\r\n\t}", "@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@ResponseBody\n\t@GetMapping(\"/employees\")\n\tpublic List<Employee> listEmployees() {\n\t\tList<Employee> theEmployees = employeeDAO.getEmployees();\n\t\t\n\t\treturn theEmployees;\n\t}", "@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "@Override\n\tpublic List<Employee> findAllEmployee() {\n\t\treturn null;\n\t}", "public Map<String, Person> getEmployees() {\n return employees;\n }", "@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}", "public String EmployeeSummary(){\r\n\t\treturn String.format(\"%d\\t%d\\t\\tJunior\\t\\t$%,.2f\\t\\t$%,.2f\\r\\n\", getID(), getYearHired(), getBaseSalary(), CalculateTotalCompensation());\r\n\t}", "public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastoremanager-\" + 370);\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\tlog.severe(\"datastoremanager-\" + 373);\n\t\t//List for returning\n\t\tList<Employee> returnedList = new ArrayList<>();\n\t\tlog.severe(\"datastoremanager-\" + 376);\n\t\t//Loops through all results and add them to the returning list \n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.severe(\"datastoremanager-\" + 379);\n\t\t\t//Vars to use\n\t\t\tString actualFirstName = null;\n\t\t\tString actualLastName = null;\n\t\t\tBoolean attendedHrTraining = null;\n\t\t\tDate hireDate = null;\n\t\t\tBlob blob = null;\n\t\t\tbyte[] photo = null;\n\t\t\t\n\t\t\t//Get results via the properties\n\t\t\ttry {\n\t\t\t\tactualFirstName = (String) result.getProperty(\"firstName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tactualLastName = (String) result.getProperty(\"lastName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tattendedHrTraining = (Boolean) result.getProperty(\"attendedHrTraining\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\thireDate = (Date) result.getProperty(\"hireDate\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tblob = (Blob) result.getProperty(\"picture\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tphoto = blob.getBytes();\n\t\t\t} catch (Exception e){}\n\t\t\tlog.severe(\"datastoremanager-\" + 387);\n\t\t\t\n\t\t\t//Build an employee (If conditionals for nulls)\n\t\t\tEmployee emp = new Employee();\n\t\t \temp.setFirstName((actualFirstName != null) ? actualFirstName : null);\n\t\t \temp.setLastName((actualLastName != null) ? actualLastName : null);\n\t\t \temp.setAttendedHrTraining((attendedHrTraining != null) ? attendedHrTraining : null);\n\t\t \temp.setHireDate((hireDate != null) ? hireDate : null);\n\t\t \temp.setPicture((photo != null) ? photo : null);\n\t\t \tlog.severe(\"datastoremanager-\" + 395);\n\t\t \treturnedList.add(emp);\n\t\t}\n\t\tlog.severe(\"datastoremanager-\" + 398);\n\t\treturn returnedList;\n\t}", "public List<LabourTimeVo> viewWorkerTimeDetailsForEditing(WorkerDetailsVo detailsVo);", "public List<Employee> selectAllEmployee() {\n\n\t\t// using try-with-resources to avoid closing resources (boiler plate code)\n\t\tList<Employee> emp = new ArrayList<>();\n\t\t// Step 1: Establishing a Connection\n\t\ttry (Connection connection = dbconnection.getConnection();\n\n\t\t\t\t// Step 2:Create a statement using connection object\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_ALL_employe);) {\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t// Step 3: Execute the query or update query\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t\t\t// Step 4: Process the ResultSet object.\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString employeename = rs.getString(\"employeename\");\n\t\t\t\tString address = rs.getString(\"address\");\n\t\t\t\tint mobile = rs.getInt(\"mobile\");\n\t\t\t\tString position = rs.getString(\"position\");\n\t\t\t\tint Salary = rs.getInt(\"Salary\");\n\t\t\t\tString joineddate = rs.getString(\"joineddate\");\n\t\t\t\tString filename =rs.getString(\"filename\");\n\t\t\t\tString path = rs.getString(\"path\");\n\t\t\t\temp.add(new Employee(id, employeename, address, mobile, position, Salary, joineddate,filename,path));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tdbconnection.printSQLException(e);\n\t\t}\n\t\treturn emp;\n\t}", "@Override\n\tpublic List<Employee> GetAll() {\n\t\t\n\t\tList<Employee> staff = new ArrayList<>();\n\t\tString sql = \"select * from Staff;\";\n\n\t\ttry {\n\t\t\tConnection c = ConnectDB.getHardCodedConnection();\n\t\t\tStatement s = c.createStatement();\n\t\t\tResultSet rs = s.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tString EmployeeName = rs.getString(\"Emp_name\");\n\t\t\t\tString EmployeeUserName = rs.getString(\"Emp_usrnme\");\n\t\t\t\tString EmployeePassword = rs.getString(\"Emp_psword\");\n\t\t\t\tInteger EmployeeRank = rs.getInt(\"Emp_rank\");\n\t\t\t\tstaff.add(new Employee(EmployeeName, EmployeeUserName,EmployeePassword,EmployeeRank));\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 staff;\n\t}", "public List<String> getAll() {\n\treturn employeeService.getAll();\n }", "@Override\n\tpublic com.ssaga.human.service.List<EmployeeDto> empList() {\n\t\treturn null;\n\t}", "public static void getEmployeeInformation(Employee [] employee) {\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Employees-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\t\r\n\t\tfinal Query query = session.createQuery(\"from Employee e order by id desc\");\r\n\t\t//Query q = session.createQuery(\"select NAME from Customer\");\r\n\t\t//final List<Employee> employeeList = query.list(); \r\n\t\treturn (List<Employee>) query.list();\r\n\t}", "@Override\r\n\tpublic List<Employee> selectAllEmployee() {\n\t\treturn null;\r\n\t}", "public Vector<Employees> getEmployees() {\n\t\t\tVector<Employees> v = new Vector<Employees>();\n\t\t\ttry {\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\tResultSet rs = stmt\n\t\t\t\t\t\t.executeQuery(\"select * from employees_details order by employees_pf\");\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tint file_num = rs.getInt(1);\n\t\t\t\t\tString name = rs.getString(2);\n\t\t\t\t\tint drive = rs.getInt(3);\n\t\t\t\t\tEmployees employee = new Employees(file_num, name, drive);\n//\t\t\t\t\tCars cars = new Truck(reg, model, drive);\n\t\t\t\t\tv.add(employee);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "public static void EmployeeHoursWorked() {\r\n\t\t\r\n\t\tJLabel e5 = new JLabel(\"Employee's Hours Worked:\");\r\n\t\te5.setFont(f);\r\n\t\tGUI1Panel.add(e5);\r\n\t\tGUI1Panel.add(employeeHoursWorked);\r\n\t\te5.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}", "@RequestMapping(value = \"/shiftList\", method = RequestMethod.GET)\n public String employeeList(Model model) {\n \tArrayList<Shift> list;\n \tlist = (ArrayList<Shift>) validationService.allShifts();\n \tmodel.addAttribute(\"shifts\", list);\n \treturn \"/allShifts\";\n }" ]
[ "0.6123502", "0.5964359", "0.5923714", "0.58314824", "0.58275485", "0.58131474", "0.5806236", "0.5793645", "0.5765988", "0.57562464", "0.57531375", "0.5742548", "0.5714311", "0.5711531", "0.5687049", "0.5682564", "0.56800985", "0.5663287", "0.5654639", "0.5645153", "0.56442946", "0.5627814", "0.5608662", "0.5606377", "0.5598557", "0.55962265", "0.5593846", "0.55857766", "0.55793756", "0.5554689", "0.5551855", "0.5541289", "0.5514815", "0.5514815", "0.55055714", "0.55050266", "0.54964745", "0.5493157", "0.5489514", "0.54875934", "0.54832023", "0.54753363", "0.5471734", "0.5461503", "0.5457686", "0.54562885", "0.5432764", "0.5425838", "0.54124504", "0.5412313", "0.53933823", "0.5392134", "0.53857726", "0.53826046", "0.53721887", "0.53630525", "0.5350958", "0.5341755", "0.534081", "0.5326186", "0.5317324", "0.53042847", "0.53008896", "0.5296062", "0.5293649", "0.5281948", "0.5281543", "0.52744675", "0.52660936", "0.52637374", "0.5259651", "0.52328", "0.52316797", "0.5230033", "0.5228508", "0.5227163", "0.5223691", "0.5204186", "0.5200167", "0.51958835", "0.5188421", "0.51835644", "0.5161436", "0.51587886", "0.5156701", "0.5147927", "0.5144334", "0.51291525", "0.5128176", "0.5125196", "0.5121896", "0.5121622", "0.51184416", "0.5115524", "0.51108444", "0.5109437", "0.51028746", "0.5102019", "0.50962013", "0.5095363" ]
0.7346939
0
getAllEmployeesReportByDate() method take attendanceDate as a input and display all employees working details on a specified date.
@RequestMapping(value = "/getAllEmployeesReportByDate", method = RequestMethod.POST) public @ResponseBody String getAllEmployeesReportByDate( @RequestParam("attendanceDate") String attendanceDate) { logger.info("inside ReportGenerationController getAllEmployeesReportByDate()"); return reportGenerationService .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\r\n\tpublic List<Exam> listAllExamsByDate(LocalDate date)\r\n\t{\n\t\treturn null;\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\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 List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "@GetMapping(\"/appointments/date/{id}/{date}\")\n public List<Appointment> getAppointmentByConsultantAndDate(@PathVariable(\"id\")Long id,@PathVariable(\"date\") @DateTimeFormat(iso= DateTimeFormat.ISO.DATE) LocalDate date) {\n return (appointmentService.findAppsByConsultantAndDate(id,date));\n }", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "@RequestMapping(value = \"/getReportByNameBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByNameDates(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByNameDates()\");\r\n\r\n return reportGenerationService.getReportByNameDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "public TimeSheet showfilledTimeSheet(Integer employeeId, Integer projectId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n TimeSheet timeSheet = timeSheetRepository.getTimeSheet(employeeId, projectId, date);\n return timeSheet;\n }", "public List<Employee> findEmployeesForService(LocalDate date, Set<EmployeeSkill> skills) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n Set<EmployeeSkill> employeeSkills = skills;\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n Set<EmployeeSkill> intersectionSkills = new HashSet<>();\n intersectionSkills.addAll(employeeSkills);\n intersectionSkills.retainAll(employee.getSkills());\n\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek) && (intersectionSkills.size() == employeeSkills.size())) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public List<Absence> getAllAbsencesOnAGivenDate(LocalDate date) throws SQLException {\n List<Absence> allAbsencesForADate = new ArrayList(); //get a list to store the values.\n java.sql.Date sqlDate = java.sql.Date.valueOf(date); // converts LocalDate date to sqlDate\n try(Connection con = dbc.getConnection()){\n String SQLStmt = \"SELECT * FROM ABSENCE WHERE DATE = '\" + sqlDate + \"'\";\n Statement statement = con.createStatement();\n ResultSet rs = statement.executeQuery(SQLStmt);\n while(rs.next()) //While you have something in the results\n {\n int userKey = rs.getInt(\"studentKey\");\n allAbsencesForADate.add(new Absence(userKey, date)); \n } \n }\n return allAbsencesForADate;\n }", "public List<Assignment> searchAssignmentsByDate(String date) throws Exception{\n\t\t\n\t\tList<Assignment> assignments = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_DUEDATE + \" = '\"+date+\"'\";\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tassignments.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tLog.d(\"Add\", \"Search results - \"+assignments.size());\n\t\t\treturn assignments;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@RequestMapping(value = \"/getreturned\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\ttry{\n\t\t\tEmployee employee=(Employee) userService.get(Integer.parseInt(httpSession.getAttribute(\"user\").toString()));\n\t\t\tBranchOffice branch=(employee.getBranchOffice());\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(branch, date));\n\t\t}catch(Exception e){\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\t\n\t\t}\n\t}", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "@RequestMapping(value = \"/getEmployeesReportBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeesReportBetweenDates(\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getEmployeesReportBetweenDates()\");\r\n\r\n return reportGenerationService.getEmployeesReportBetweenDates(new Date(Long.valueOf(fromDate)),\r\n new Date(Long.valueOf(toDate)));\r\n }", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "public String viewByDate(LocalDate date) {\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\n\t\tString str = formatter.format(date);\n\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\t\t\tformatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\t\t\tstr = formatter.format(date);\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tstr = str + \"\\n\\n\" + \"\\t\" + e.sTime + \" - \" + e.eTime + \": \" + e.name;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstr = str + \"\\n\\n\"+\":: No Event Scheduled Yet ::\";\n\t\t}\n\n\t\treturn str;\n\n\t}", "@WebMethod public ArrayList<Event> getEvents(LocalDate date);", "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "@Override\n\tpublic List<Employee> viewAllEmployees() {\n\t\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\t\t CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);\n\t\t Root<Employee> rootEntry = cq.from(Employee.class);\n\t\t CriteriaQuery<Employee> all = cq.select(rootEntry);\n\t \n\t\t TypedQuery<Employee> allQuery = em.createQuery(all);\n\t\t return allQuery.getResultList();\n\t}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "private List<Object[]> getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate,\n endDate)\n .maxResults(SummaryReportService.MAX_VISITED_COMPANIES_RECORD).getResultList();\n }", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "List<Employee> allEmpInfo();", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }", "@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }", "@RequestMapping(value = \"/getReportByName\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByName(@RequestParam(\"employeeId\") String employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportByName()\");\r\n\r\n return reportGenerationService.getReportByName(employeeId);\r\n }", "@RequestMapping(value = \"/getreturnedadmin\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedAdminToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\n\t}", "@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "public List<UserAttendance> getDayAttendance(Date[] dates, SysUser sysUser) {\n return findByQuery(\"from UserAttendance where (checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=?) and user.id=? and type is not null order by checkdate, noon\",\n dates[0], dates[1], dates[2], dates[3], dates[4], dates[5], dates[6], sysUser.getId());\n }", "@Override\n\tpublic Optional<LineReport> findReportbyId(int date) {\n\t\treturn null;\n\t}", "@GetMapping(\"/my-employee\")\n\t@Secured(Roles.BOSS)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAllMyEmployees() {\n\t\tLogStepIn();\n\n\t\t// Gets the currently logged in user's name\n\t\tString username = SecurityContextHolder.getContext().getAuthentication().getName();\n\t\tLong bossId = userRepository.findByName(username).getEmployee().getId();\n\n\t\t// Adds the employees that directly belongs to this boss\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tfor(Employee employee : employeeList) {\n\t\t\tif(employee.getBossId().equals(bossId))\n\t\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}", "@Override\n\tpublic List<EmployeeBean> getEmployeeList() throws Exception {\n\t\treturn employeeDao.getEmployeeList();\n\t}", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "public static Boolean isEntry(LocalDate date, Date dateEmployee) {\n return date.equals(convertDate(dateEmployee));\n }", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}", "@RequestMapping(value = \"/getReportById\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportById(@RequestParam(\"employeeId\") int employeeId) {\r\n logger.info(\"inside ReportGenerationController getReportById()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsById(employeeId);\r\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/getReports\")\r\n public List<Reports> getReports() {\r\n\r\n List<Reports> results = reportsRepository.getReportsByDate();\r\n return results;\r\n\r\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/my-events/{id}/type/{alertType}/date/{date}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllEventsByUserAndAlertTypeAndDate(@PathVariable(\"id\") String id,\r\n @DateTimeFormat(pattern = \"yyyy-MM-dd\") @PathVariable(\"date\") Date date,\r\n @PathVariable(\"alertType\") String alertType, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n Calendar c = Calendar.getInstance();\r\n c.setTime(date);\r\n c.add(Calendar.DATE, 1);\r\n c.add(Calendar.SECOND, -1);\r\n Page<Alert> res = alertRepository.findByRefUserAndAlertTypeAndDateTimeBetweenOrderByDateTimeDesc(id, alertType,\r\n date, c.getTime(), pageable);\r\n return res;\r\n }", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}", "public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}", "@GetMapping(value=\"/gps\", params=\"date\")\n @ResponseBody\n public List<GPSInfo> allFromDate(@RequestParam @DateTimeFormat(pattern = \"yyyy-MM-dd\") LocalDate date) {\n return repository.findByDate(date);\n }", "@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }", "@Override\r\n\tpublic List<Report> getReport(Date from,Date to) {\r\n\t\treturn jdbcTemplate.query(SQLConstants.SQL_SELECT_ALL_FOR_SUPERADMIN_FROM_N_TO, new RowMapper<Report>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Report mapRow(ResultSet rs, int arg1) throws SQLException {\r\n\t\t\t\tReport report = new Report();\r\n\t\t\t\treport.setPaymentId(rs.getInt(1));\r\n\t\t\t\t//change the date format\r\n\t\t\t\treport.setPaymentTime(rs.getDate(2));\r\n\t\t\t\treport.setTransactionId(rs.getInt(3));\r\n\t\t\t\treport.setUserId(rs.getInt(5));\r\n\t\t\t\treport.setPayment_by(rs.getString(6));\r\n\t\t\t\treport.setBank_acc_id(rs.getInt(8));\r\n\t\t\t\treport.setAmount(rs.getInt(9));\r\n\t\t\t\treport.setStatus(rs.getInt(10));\r\n\t\t\t\treturn report;\r\n\t\t\t}\r\n\t\t}, from, to);\r\n\t}", "@PostMapping(\"/monthlySalaryReport\")\n public String getmonthlySalaryReport(ModelMap model, @RequestParam @DateTimeFormat(pattern = \"YYYY-MM-dd\") Date salaryDate) {\n try {\n\n List<MonthlySalaryReport> monthlySalaryList = monthlyReportService.getMonthlySalaryReport(salaryDate);\n\n if (monthlySalaryList.isEmpty()) {\n model.addAttribute(\"recordMessage\", \"No Records Found\");\n return \"html/monthlySalaryReport\";\n }\n model.addAttribute(\"monthlySalaryList\", monthlySalaryList);\n return \"html/fragment/monthlySalaryReportResult\";\n // return \"html/exceltest\";\n } catch (Exception e) {\n model.addAttribute(\"Problem occured due to technical problem\");\n LOG.error(\"Problem occured due to technical problem\", e);\n return \"html/monthlySalaryReport\";\n }\n }", "@RequestMapping(value = \"/employeesList\", method = RequestMethod.GET, produces = {\"application/xml\", \"application/json\" })\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic @ResponseBody\n\tEmployeeListVO getListOfAllEmployees() {\n\t\tlog.info(\"ENTERING METHOD :: getListOfAllEmployees\");\n\t\t\n\t\tList<EmployeeVO> employeeVOs = employeeService.getListOfAllEmployees();\n\t\tEmployeeListVO employeeListVO = null;\n\t\tStatusVO statusVO = new StatusVO();\n\t\t\n\t\tif(employeeVOs.size()!=0){\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_0);\n\t\t\tstatusVO.setMessage(AccountantConstants.SUCCESS);\n\t\t}else{\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_1);\n\t\t\tstatusVO.setMessage(AccountantConstants.NO_RECORDS_FOUND);\n\t\t}\n\t\t\n\t\temployeeListVO = new EmployeeListVO(employeeVOs, statusVO);\n\t\t\n\t\tlog.info(\"EXITING METHOD :: getListOfAllEmployees\");\n\t\treturn employeeListVO;\n\t}", "public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employeeDao.getAllEmployee();\r\n\t}", "@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }", "public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastoremanager-\" + 370);\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\tlog.severe(\"datastoremanager-\" + 373);\n\t\t//List for returning\n\t\tList<Employee> returnedList = new ArrayList<>();\n\t\tlog.severe(\"datastoremanager-\" + 376);\n\t\t//Loops through all results and add them to the returning list \n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.severe(\"datastoremanager-\" + 379);\n\t\t\t//Vars to use\n\t\t\tString actualFirstName = null;\n\t\t\tString actualLastName = null;\n\t\t\tBoolean attendedHrTraining = null;\n\t\t\tDate hireDate = null;\n\t\t\tBlob blob = null;\n\t\t\tbyte[] photo = null;\n\t\t\t\n\t\t\t//Get results via the properties\n\t\t\ttry {\n\t\t\t\tactualFirstName = (String) result.getProperty(\"firstName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tactualLastName = (String) result.getProperty(\"lastName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tattendedHrTraining = (Boolean) result.getProperty(\"attendedHrTraining\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\thireDate = (Date) result.getProperty(\"hireDate\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tblob = (Blob) result.getProperty(\"picture\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tphoto = blob.getBytes();\n\t\t\t} catch (Exception e){}\n\t\t\tlog.severe(\"datastoremanager-\" + 387);\n\t\t\t\n\t\t\t//Build an employee (If conditionals for nulls)\n\t\t\tEmployee emp = new Employee();\n\t\t \temp.setFirstName((actualFirstName != null) ? actualFirstName : null);\n\t\t \temp.setLastName((actualLastName != null) ? actualLastName : null);\n\t\t \temp.setAttendedHrTraining((attendedHrTraining != null) ? attendedHrTraining : null);\n\t\t \temp.setHireDate((hireDate != null) ? hireDate : null);\n\t\t \temp.setPicture((photo != null) ? photo : null);\n\t\t \tlog.severe(\"datastoremanager-\" + 395);\n\t\t \treturnedList.add(emp);\n\t\t}\n\t\tlog.severe(\"datastoremanager-\" + 398);\n\t\treturn returnedList;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/my-events/{id}/date/{date}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllEventsByUserAndDate(@PathVariable(\"id\") String id,\r\n @DateTimeFormat(pattern = \"yyyy-MM-dd\") @PathVariable(\"date\") Date date, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n Calendar c = Calendar.getInstance();\r\n c.setTime(date);\r\n c.add(Calendar.DATE, 1);\r\n c.add(Calendar.SECOND, -1);\r\n Page<Alert> res = alertRepository.findByRefUserAndDateTimeBetweenOrderByDateTimeDesc(id, date, c.getTime(),\r\n pageable);\r\n return res;\r\n }", "public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}", "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}", "public ArrayList<PatientHealthContract> getHealthListByDate(String date) {\n SQLiteDatabase db = helper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n PatientHealthEntry.COLUMN_AGE + \",\" +\n PatientHealthEntry.COLUMN_EMAIL + \",\" +\n PatientHealthEntry.COLUMN_BLOOD_GROUP + \",\" +\n PatientHealthEntry.COLUMN_MEDICATION + \",\" +\n PatientHealthEntry.COLUMN_CONDITION + \",\" +\n PatientHealthEntry.COLUMN_NOTES + \",\" +\n PatientHealthEntry.COLUMN_DATE_OF_VISIT +\n \" FROM \" + PatientHealthEntry.TABLE_NAME +\n \" WHERE \" + PatientHealthEntry.COLUMN_DATE_OF_VISIT + \" = \" + \"'\" + date + \"'\" + \";\";\n\n //PatientHealthEntry patient = new PatientHealthEntry();\n ArrayList<PatientHealthContract> healthList = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n PatientHealthContract patient = new PatientHealthContract();\n patient.setAge(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_AGE)));\n patient.setBloodGroup(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_BLOOD_GROUP)));\n patient.setCondition(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_CONDITION)));\n patient.setMedication(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_MEDICATION)));\n patient.setNotes(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_NOTES)));\n patient.setDateVisit(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_DATE_OF_VISIT)));\n patient.setEmail(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_EMAIL)));\n healthList.add(patient);\n\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return healthList;\n }", "public JSONArray getSupervisorReportsData(final String startDate, final String toDate) throws Exception {\n\t\tfinal String endDate = toDate + \" 23:59:59\";\n\t\tfinal List<Object[]> entities = workListDao.getWorklistDataForSupervisorReport(startDate, endDate);\n\t\tfinal JSONArray jsonArray = new JSONArray();\n\t\tfor (Object[] entity : entities) {\n\t\t\tconstructJsonArray(entity, jsonArray);\n\t\t}\n\t\treturn jsonArray;\n\t}", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "public List<Employee> listEmployees (int managerId){\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\ttry {\n\t\t\t// use prepared statements to prevent sql injection attacks\n\t\t\tPreparedStatement stmt = null;\n\t\t\t\n // the query to send to the database\n String query = \"SELECT e.EmployeeID, e.FirstName, e.LastName, e.ManagerID As ManagerID, (SELECT COUNT(*) FROM employees WHERE ManagerID = e.EmployeeID) AS DirectReports FROM employees e \"; \n \n if (managerId == 0) {\n // select where employees reportsto is null\n query += \"WHERE e.ManagerID = 0\";\n stmt = _conn.prepareStatement(query);\n }else{\n // select where the reportsto is equal to the employeeId parameter\n query += \"WHERE e.ManagerID = ?\" ;\n stmt = _conn.prepareStatement(query);\n stmt.setInt(1, managerId);\n }\n\t\t\t// execute the query into a result set\n\t\t\tResultSet rs = stmt.executeQuery();\n \n\t\t\t// iterate through the result set\n\t\t\twhile(rs.next()) {\t\n\t\t\t\t// create a new employee model object\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\t\n\t\t\t\t// select fields out of the database and set them on the class\n\t\t\t\t//employee.setEmployeeID(rs.getString(\"EmployeeID\"));\n\t\t\t\t//employee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\t//employee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\t//employee.setManagerID(rs.getString(\"ManagerID\"));\n employee.setHasChildren(rs.getInt(\"DirectReports\") > 0); \n\t\t\t\t//employee.setFullName();\n\t\t\t\t\n\t\t\t\t// add the class to the list\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return the result list\n\t\treturn employees;\n\t\t\n\t}", "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "@Override\n\tpublic List<AppointmentDto> getAppointmentByUserIdForADate(int userId, Date date) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_BY_USERID_ON_PARTICULAR_DATE, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"),rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, userId, date );\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord()\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord();\n\t}", "public List getUserVacationHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n if (hireDateStart == null) {\n hireDateStart = new Date();\n }\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Vacation\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "private void addToDailyReport(String day, double empHours, double empPay)\r\n\t{\r\n\t\t//reset singleDay just in case\r\n\t\tDailyHours singleDay = null;\r\n\t\t\r\n\t\t//call the findEntryByDate method to find the date\r\n\t\tsingleDay = findEntryByDate(day);\r\n\t\t\r\n\t\t//if the date is not found, create a new date object.\r\n\t\tif(singleDay == null)\r\n\t\t{\r\n\t\t\t//date not found, so create a new date object\r\n\t\t\tsingleDay = new DailyHours(day);\r\n\t\t\t\r\n\t\t\t//add the day to our inventory\r\n\t\t\tdailyHourLog.add(singleDay);\r\n\t\t}//end create new day \r\n\t\t\r\n\t\t//add the employee hours and pay to that day\r\n\t\tsingleDay.addHours(empHours);\r\n\t\tsingleDay.addPay(empPay,empHours);\r\n\t}", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Employee> findAllEmployees() {\n\t\treturn employeeRepository.findAllEmployess();\n\t}", "public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }", "@ResponseBody\n\t@GetMapping(\"/employees-sort-by-hiredate\")\n\tpublic List<Employee> listEmployeesSortByHiredate() {\n\t\tList<Employee> theEmployeesSortByHiredate = employeeDAO.getEmployeesSortByHiredate();\n\t\t\n\t\treturn theEmployeesSortByHiredate;\n\t}", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "@GetMapping(\"/all\")\n public ResponseEntity responseAllEmployees(){\n return new ResponseEntity<>(hr_service.getAllEmployees(), HttpStatus.OK);\n }", "@RequestMapping(path = \"/employee\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic List<Employee> displayEmployee() {\r\n\t\treturn er.findAll();\r\n\t}" ]
[ "0.7326934", "0.715585", "0.6822829", "0.6706855", "0.66664183", "0.65024114", "0.61665535", "0.60985094", "0.60889846", "0.6026969", "0.60153", "0.59769875", "0.596309", "0.59349185", "0.59241855", "0.5873854", "0.58436996", "0.5749919", "0.5738959", "0.572499", "0.5719187", "0.5683674", "0.5639069", "0.5637587", "0.56349075", "0.55960023", "0.5594716", "0.55926895", "0.5589724", "0.55460113", "0.55370605", "0.5535476", "0.5523694", "0.55120003", "0.5507814", "0.5493709", "0.54682386", "0.5462525", "0.5459756", "0.545064", "0.5433385", "0.5431411", "0.5402349", "0.5395782", "0.53943", "0.5386723", "0.5380151", "0.5377223", "0.53505427", "0.5340395", "0.5339922", "0.53364325", "0.53313655", "0.5329658", "0.53279907", "0.5314639", "0.5307888", "0.5302502", "0.53012073", "0.52949834", "0.52908826", "0.52879846", "0.52852106", "0.52663857", "0.5259628", "0.5259624", "0.5259035", "0.52585244", "0.52531815", "0.5245653", "0.52404314", "0.52390414", "0.5235057", "0.5229279", "0.52274966", "0.52252036", "0.522422", "0.52237207", "0.52220964", "0.522186", "0.5220679", "0.52172434", "0.52158314", "0.52152604", "0.5210383", "0.5203136", "0.5202382", "0.51956844", "0.51899433", "0.5184596", "0.5184307", "0.5182818", "0.5177261", "0.51772434", "0.51760954", "0.5171005", "0.51681083", "0.5166609", "0.5163884", "0.516381" ]
0.8144976
0
getEmployeesReportBetweenDates(,) method takes fromDate, toDate as a inputs and displays all employees working details during given period of time.
@RequestMapping(value = "/getEmployeesReportBetweenDates", method = RequestMethod.POST) public @ResponseBody String getEmployeesReportBetweenDates( @RequestParam("fromDate") String fromDate, @RequestParam("toDate") String toDate) { logger.info("inside ReportGenerationController getEmployeesReportBetweenDates()"); return reportGenerationService.getEmployeesReportBetweenDates(new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getReportByNameBetweenDates\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByNameDates(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"fromDate\") String fromDate, @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByNameDates()\");\r\n\r\n return reportGenerationService.getReportByNameDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@RequestMapping(value = \"/getReportByIdFromDateToDate\", method = RequestMethod.GET)\r\n public @ResponseBody String getReportByIdFromDateToDate(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"fromDate\") String fromDate,\r\n @RequestParam(\"toDate\") String toDate) {\r\n logger.info(\"inside ReportGenerationController getReportByIdFromDateToDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByDates(employeeId,\r\n new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate)));\r\n }", "@Override\r\n\tpublic List<Report> getReport(Date from,Date to) {\r\n\t\treturn jdbcTemplate.query(SQLConstants.SQL_SELECT_ALL_FOR_SUPERADMIN_FROM_N_TO, new RowMapper<Report>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Report mapRow(ResultSet rs, int arg1) throws SQLException {\r\n\t\t\t\tReport report = new Report();\r\n\t\t\t\treport.setPaymentId(rs.getInt(1));\r\n\t\t\t\t//change the date format\r\n\t\t\t\treport.setPaymentTime(rs.getDate(2));\r\n\t\t\t\treport.setTransactionId(rs.getInt(3));\r\n\t\t\t\treport.setUserId(rs.getInt(5));\r\n\t\t\t\treport.setPayment_by(rs.getString(6));\r\n\t\t\t\treport.setBank_acc_id(rs.getInt(8));\r\n\t\t\t\treport.setAmount(rs.getInt(9));\r\n\t\t\t\treport.setStatus(rs.getInt(10));\r\n\t\t\t\treturn report;\r\n\t\t\t}\r\n\t\t}, from, to);\r\n\t}", "public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }", "private List<Object[]> getAllVisitInfoFromDailyReportByStartDateAndEndDate(final Date startDate, final Date endDate,\n final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllVisitInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate, endDate)\n .getResultList();\n }", "private ResultSet getResultSetSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo){\n PreparedStatement ps;\n try {\n ps = connection.prepareStatement(SQL_SELECT);\n ps.setString(0, departmentId);\n ps.setDate(1, new java.sql.Date(dateFrom.toEpochDay()));\n ps.setDate(2, new java.sql.Date(dateTo.toEpochDay()));\n return ps.executeQuery();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "public JSONArray getSupervisorReportsData(final String startDate, final String toDate) throws Exception {\n\t\tfinal String endDate = toDate + \" 23:59:59\";\n\t\tfinal List<Object[]> entities = workListDao.getWorklistDataForSupervisorReport(startDate, endDate);\n\t\tfinal JSONArray jsonArray = new JSONArray();\n\t\tfor (Object[] entity : entities) {\n\t\t\tconstructJsonArray(entity, jsonArray);\n\t\t}\n\t\treturn jsonArray;\n\t}", "public abstract void generateReport(Date from, Date to, String objectCode);", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "protected List<Daily_report> getListPeriodicDailyReport(final Date startDate, final Date endDate,\n final String branchCode, final Employee_mst selectedEmployee) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C LEFT JOIN FETCH A.industry_big_mst D\");\n query.append(\" LEFT JOIN FETCH A.employee_mst E\");\n query.append(\" WHERE C.com_delete_flg = 'false' AND E.emp_delete_flg = 'false'\");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n\n // not monthly report\n if (StringUtils.isNotEmpty(branchCode)) {\n query.append(\" AND A.pk.dai_point_code = :branchCode\");\n }\n if (selectedEmployee != null) {\n query.append(\" AND A.pk.dai_employee_code = :employeeCode\");\n }\n\n query.append(\" ORDER BY A.pk.dai_point_code, A.pk.dai_employee_code\");\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class);\n\n if (StringUtils.isNotEmpty(branchCode)) {\n typedQuery.setParameter(\"branchCode\", branchCode);\n }\n if (selectedEmployee != null) {\n typedQuery.setParameter(\"employeeCode\", selectedEmployee.getEmp_code());\n }\n\n typedQuery.setParameter(\"startDate\", startDate).setParameter(\"endDate\", endDate);\n\n // order by\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "private List<Object[]> getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo\n .getAllCompanyVisitedInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(), startDate,\n endDate)\n .maxResults(SummaryReportService.MAX_VISITED_COMPANIES_RECORD).getResultList();\n }", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Date from, Date to) {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "public List<Contact> readEmployeePayrollForGivenDateRange(IOService ioService, LocalDate startDate,\n\t\t\tLocalDate endDate) throws CustomPayrollException {\n\t\tif (ioService.equals(IOService.DB_IO)) {\n\t\t\tthis.employeePayrollList = normalisedDBServiceObj.getEmployeeForDateRange(startDate, endDate);\n\t\t}\n\t\treturn employeePayrollList;\n\t}", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "@RequestMapping(value = \"/unitreports/{dept}/{unit}/{fromDate}/{toDate}/\")\n @CrossOrigin\n public String getUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n Enumeration<String> parameterNames = request.getParameterNames();\n Gson gson = new Gson();\n String search = request.getParameter(\"search[value]\");\n String sortColumnIndex = request.getParameter(\"order[0][column]\");\n String sortDir = request.getParameter(\"order[0][dir]\");\n String skip = request.getParameter(\"start\");\n String length = request.getParameter(\"length\");\n String draw = request.getParameter(\"draw\");\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n PaginationDto paginationDto = unitReportService.getUnitsReports(dept,unit,fromDate,toDate,draw,length,skip,sortDir,sortColumnIndex,search);\n\n String jsonString = gson.toJson(paginationDto);\n return jsonString;\n\n }", "public interface DataSource {\n\n Report getSalaryReport(String departmentId, LocalDate dateFrom, LocalDate dateTo);\n\n}", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "@Transactional(readOnly = true)\n public List<Employee> findBetween(Date firstBirthDate, Date lastBirthDate) {\n logger.debug(\"find employee range : {}\", SearshRange(firstBirthDate, lastBirthDate));\n return employeeDao.findBetween(firstBirthDate, lastBirthDate);\n }", "@RequestMapping(\"/getUserReport\")\n public List<BookSale> getUserReport(@RequestParam(\"user_id\")int user_id,\n @RequestParam(\"start\")String start,\n @RequestParam(\"end\")String end) {\n Timestamp time1 = Timestamp.valueOf(start);\n Timestamp time2 = Timestamp.valueOf(end);\n return orderService.getUserReport(user_id, time1, time2);\n }", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "List<Employee> findByJoiningDateBetween(LocalDateTime localDateTime, LocalDateTime localDateTime2);", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "public List<GLJournalApprovalVO> getAllPeriod(String ClientId, String FromDate, String ToDate) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT c_period.c_period_id AS ID,to_char(c_period.startdate,'dd-MM-YYYY'),c_period.name,c_period.periodno FROM c_period WHERE \"\n + \" AD_CLIENT_ID IN (\" + ClientId\n + \") and c_period.startdate>=TO_DATE(?) and c_period.enddate<=TO_DATE(?) order by c_period.startdate \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FromDate);\n st.setString(2, ToDate);\n log4j.debug(\"period:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setStartdate(rs.getString(2));\n VO.setName(rs.getString(3));\n VO.setPeriod(rs.getString(4));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "void calculateValues(final FinancialAnalysisParameter financialParameter, final Date dateFrom,\n final Date dateTo);", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Date from, Date to) {\n\t\treturn null;\r\n\t}", "public List<Reservation>reporteFechas(String date1, String date2){\n\n\t\t\tSimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tDate dateOne = new Date();\n\t\t\tDate dateTwo = new Date();\n\n\t\t\ttry {\n\t\t\t\tdateOne = parser.parse(date1);\n\t\t\t\tdateTwo = parser.parse(date2);\n\t\t\t} catch (ParseException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(dateOne.before(dateTwo)){\n\t\t\t\treturn repositoryR.reporteFechas(dateOne, dateTwo);\n\t\t\t}else{\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\n\t \t\n\t }", "private List<Object[]> getAllPurposeInfoFromDailyReportByStartDateAndEndDate(final Date startDate,\n final Date endDate, final Employee_mst selectedEmployee) {\n return this.dailyRepo.getAllPurposeInfoFromDailyReportByStartDateAndEndDate(selectedEmployee.getEmp_code(),\n startDate, endDate).getResultList();\n }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "public void populateDataForVisitTimeReport(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n\n // reset\n this.mapCompanyBranchVsListEmployee = new HashMap<>();\n this.mapCompanyBranchVsListOfPurposes = new HashMap<>();\n this.mapCompanyBranchVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchPurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeePurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeeVsVisitTimes = new HashMap<>();\n // init\n for (final String companyCode : companyCodes) {\n for (final String branchCode : SummaryReportService.BRANCHES.keySet()) {\n final String key =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n this.mapCompanyBranchVsListEmployee.put(key, new ArrayList<Integer>());\n this.mapCompanyBranchVsListOfPurposes.put(key, new ArrayList<Short>());\n this.mapCompanyBranchVsVisitTimes.put(key, 0);\n }\n }\n\n final List<Daily_report> listDailyReport = this.getListVisited(startDate, endDate, companyCodes);\n\n for (final Daily_report daily : listDailyReport) {\n final String companyCode = daily.getDai_company_code();\n String branchCode = daily.getDai_point_code();\n\n final int employeeCode = daily.getDai_employee_code();\n final boolean isHQ = daily.getEmployee_mst().getEmp_settle_authority() == AuthorityLevels.HEAD_QUARTER;\n if (isHQ) {\n branchCode = SummaryReportConstants.HQ_CODE;\n }\n final String companyBranchKey =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n\n if (this.mapCompanyBranchVsListEmployee.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListEmployee.get(companyBranchKey).contains(employeeCode)) {\n this.mapCompanyBranchVsListEmployee.get(companyBranchKey).add(employeeCode);\n }\n }\n if (this.mapCompanyBranchVsListOfPurposes.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey)\n .contains(daily.getDai_work_tancode())) {\n this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey).add(daily.getDai_work_tancode());\n }\n }\n if (this.mapCompanyBranchVsVisitTimes.containsKey(companyBranchKey)) {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey,\n this.mapCompanyBranchVsVisitTimes.get(companyBranchKey) + 1);\n }\n else {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey, 0);\n }\n\n final String companyBranchPurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_PURPOSE_KEY_PATTERN, companyCode, branchCode,\n daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchPurposeVsVisitTimes, companyBranchPurposeKey);\n\n final String companyBranchEmployeeKey = String.format(\n SummaryReportService.COMPANY_BRANCH_EMPLOYEE_KEY_PATTERN, companyCode, branchCode, employeeCode);\n this.updateCountersOfMap(this.mapCompanyBranchEmployeeVsVisitTimes, companyBranchEmployeeKey);\n\n final String companyBranchEmployeePurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_EMPLOYEE_PURPOSE_KEY_PATTERN, companyCode,\n branchCode, employeeCode, daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchEmployeePurposeVsVisitTimes, companyBranchEmployeePurposeKey);\n }\n\n }", "@CrossOrigin(origins = \"http://campsiteclient.herokuapp.com\", maxAge = 3600)\n\t@GetMapping\n\tpublic JSONArray checkAvaibility(@RequestParam(value = \"from\") Optional<String> from,\n\t\t\t@RequestParam(value = \"to\") Optional<String> to) throws java.text.ParseException {\n\n\t\tString startDateStringFormat = from\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(1, new Date())));\n\t\tString endDateStringFormat = to\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(31, new Date())));\n\n\t\tDate startDate = bookingServiceImpl.formatDate(startDateStringFormat);\n\t\tDate endDate = dateUtils.formatDate(endDateStringFormat);\n\n\t\tList<BookingDate> bookedDates = bookingDateRepository.getBooking(startDate, endDate);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (BookingDate bookingDate : bookedDates) {\n\t\t\tDate date = bookingDate.getBookingDate();\n\t\t\tString dateToString = dateUtils.formatDate(date);\n\t\t\tlist.add(dateToString);\n\t\t}\n\n\t\tJSONArray result = bookingServiceImpl\n\t\t\t\t.getAvailableDates(new HashSet<BookingDate>(bookedDates), startDate, endDate);\n\t\treturn result;\n\t}", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public static List<LogEntry> getAllByDates ( final String user, final String startDate, final String endDate ) {\n // Parse the start string for year, month, and day.\n final String[] startDateArray = startDate.split( \"-\" );\n final int startYear = Integer.parseInt( startDateArray[0] );\n final int startMonth = Integer.parseInt( startDateArray[1] );\n final int startDay = Integer.parseInt( startDateArray[2] );\n\n // Parse the end string for year, month, and day.\n final String[] endDateArray = endDate.split( \"-\" );\n final int endYear = Integer.parseInt( endDateArray[0] );\n final int endMonth = Integer.parseInt( endDateArray[1] );\n final int endDay = Integer.parseInt( endDateArray[2] );\n\n // Get calendar instances for start and end dates.\n final Calendar start = Calendar.getInstance();\n start.clear();\n final Calendar end = Calendar.getInstance();\n end.clear();\n\n // Set their values to the corresponding start and end date.\n start.set( startYear, startMonth, startDay );\n end.set( endYear, endMonth, endDay );\n\n // Check if the start date happens after the end date.\n if ( start.compareTo( end ) > 0 ) {\n System.out.println( \"Start is after End.\" );\n // Start is after end, return empty list.\n return new ArrayList<LogEntry>();\n }\n\n // Add 1 day to the end date. EXCLUSIVE boundary.\n end.add( Calendar.DATE, 1 );\n\n\n // Get all the log entries for the currently logged in users.\n final List<LogEntry> all = LoggerUtil.getAllForUser( user );\n // Create a new list to return.\n final List<LogEntry> dateEntries = new ArrayList<LogEntry>();\n\n // Compare the dates of the entries and the given function parameters.\n for ( int i = 0; i < all.size(); i++ ) {\n // The current log entry being looked at in the all list.\n final LogEntry e = all.get( i );\n\n // Log entry's Calendar object.\n final Calendar eTime = e.getTime();\n // If eTime is after (or equal to) the start date and before the end\n // date, add it to the return list.\n if ( eTime.compareTo( start ) >= 0 && eTime.compareTo( end ) < 0 ) {\n dateEntries.add( e );\n }\n }\n // Return the list.\n return dateEntries;\n }", "public void outputToExcel(String startTime,String endTime) throws ParseException {\n\t\tDate[] dates = new Date[2];\r\n\t\tif (startTime != null && endTime != null) {\r\n\t\t\t\r\n\t\t\tString dateRange = startTime +\" - \"+endTime;\r\n\t\t\tdates = WebUtil.changeDateRangeToDate(dateRange);\r\n\t\t}else {\r\n\t\t\tdates[0] = null;\r\n\t\t\tdates[1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tList<Profit> profits = profitMapper.getProfit(dates[0], dates[1]);\r\n\t\tList<CourseProfit> courseProfits = courseSelectMapper.getCourseProfit(dates[0],WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<CardProfit> cardProfits = cardFeeMapper.getCardProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<MachineBuyConfig> machineBuyConfigs = machineConfigMapper.getMachineProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\t\r\n\t\tMap<String, String> profitMap = new LinkedHashMap<String, String>();\r\n\t\tprofitMap.put(\"date\", \"时间\");\r\n\t\tprofitMap.put(\"vip\", \"会员收益\");\r\n\t\tprofitMap.put(\"course\", \"课程收益\");\r\n\t\tprofitMap.put(\"mechine\", \"器械支出\");\r\n\t\tprofitMap.put(\"sum\", \"总计\");\r\n\t\tString sheetName = \"财务总表\";\r\n\t\t\r\n\t\tMap<String, String> courseProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcourseProfitMap.put(\"selectTime\", \"时间\");\r\n\t\tcourseProfitMap.put(\"courseName\", \"课程名称\");\r\n\t\tcourseProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcourseProfitMap.put(\"courseCost\", \"课程收益\");\r\n\t\tString courseSheet = \"课程收益\";\r\n\t\t\r\n\t\tMap<String, String> cardProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcardProfitMap.put(\"startTime\", \"时间\");\r\n\t\tcardProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcardProfitMap.put(\"cardType\", \"办卡类型\");\r\n\t\tcardProfitMap.put(\"cardFee\", \"办卡收益\");\r\n\t\tString cardSheet = \"办卡收益(1、年卡会员 2、季卡会员 3、月卡会员)\";\r\n\t\t\r\n\t\tMap<String, String> machineOutMap = new LinkedHashMap<String, String>();\r\n\t\tmachineOutMap.put(\"time\", \"时间\");\r\n\t\tmachineOutMap.put(\"machineName\", \"器械名称\");\r\n\t\tmachineOutMap.put(\"machineBrand\", \"器械品牌\");\r\n\t\tmachineOutMap.put(\"machineCost\", \"单价\");\r\n\t\tmachineOutMap.put(\"machineCount\", \"购买数量\");\r\n\t\tmachineOutMap.put(\"sumCost\", \"支出\");\r\n\t\tString machineSheet = \"器械支出\";\r\n\t\t\r\n\t\tExportExcel.excelExport(profits, profitMap, sheetName);\r\n\t\tExportExcel.excelExport(courseProfits, courseProfitMap, courseSheet);\r\n\t\tExportExcel.excelExport(cardProfits, cardProfitMap, cardSheet);\r\n\t\tExportExcel.excelExport(machineBuyConfigs, machineOutMap, machineSheet);\r\n\t}", "public void showBookingsByDates(JTextArea output, Date fromDate, Date toDate)\r\n {\r\n output.setText(\"Bookinger mellom \" \r\n + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(fromDate)) \r\n + \" og \" + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(toDate)) + \"\\n\\n\");\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n \r\n if((booking.getToDate().compareTo(toDate) >= 0 &&\r\n booking.getFromDate().compareTo(fromDate) <= 0) ||\r\n (booking.getToDate().compareTo(toDate) <= 0) && \r\n booking.getFromDate().compareTo(fromDate) >= 0)\r\n {\r\n output.append(booking.toString() \r\n + \"\\n*******************************************************\\n\");\r\n }//End of if\r\n }// End of while\r\n }", "@Override\r\n\tpublic List<DispatchAnalysis> getDispatchDetailsBetween(Date fromDate, Date toDate)\t{\r\n\t\t\r\n\t\tList<DispatchAnalysis> dispatchAnalysisDetails=new ArrayList<>();\r\n\t\tDispatchAnalysis dispatchAnalysis=new DispatchAnalysis();\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\tSystem.out.println(orderDetails);\r\n\t\t//for each order placed, get shipment details\r\n\t\tfor(Order order:orderDetails)\t{\r\n\t\t\tList<Shipment> shipmentDetails=order.getShipments();\r\n\t\t\tSystem.out.println(shipmentDetails);\r\n\t\t\t\r\n\t\t\tfor(Shipment shipment:shipmentDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\tc.setTime(order.getOrderDate());\r\n\t\t\t\tc.add(c.DAY_OF_MONTH, 1);\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysis.setProductName(shipment.getProduct().getProductName());\r\n\t\t\t\tdispatchAnalysis.setMerchantName(shipment.getProduct().getInventory().getMerchant().getMerchantName());\r\n\t\t\t\t//expected dispatch date of the product is one day after order placed\r\n\t\t\t\tdispatchAnalysis.setExpectedDispatchDate(c.getTime());\r\n\t\t\t\tdispatchAnalysis.setActualDispatchDate(shipment.getDispatchDate());\r\n\t\t\t\tdispatchAnalysis.setDeliveryDate(shipment.getDeliveryDate());\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysisDetails.add(dispatchAnalysis);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dispatchAnalysisDetails;\r\n\t}", "void generateResponseHistory(LocalDate from, 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 }", "@RequestMapping(value = \"report/estabelecimentos/date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(\"hasRole('ROLE_PUBLIC') or hasRole('ROLE_ADMIN') or hasRole('ROLE_SUPERVISOR')\")\n public ResponseEntity<?> reportByDate(@RequestBody Map<String, Object> jsonData) {\n verifyParamms(jsonData, new String[] { \"startDate\", \"endDate\" });\n try {\n LocalDate startDate = LocalDate.parse(jsonData.get(\"startDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n LocalDate endDate = LocalDate.parse(jsonData.get(\"endDate\").toString(),\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n List<Estabelecimento> listEstabelecimentos = repository.findByCreatedAtEstabelecimentos(startDate, endDate);\n byte[] bytes = jasperReportsService.generatePDFReport(listEstabelecimentos);\n return ResponseEntity.ok().header(\"Content-Type\", \"application/pdf; charset=UTF-8\")\n .header(\"Content-Disposition\", \"inline; filename=\\\"\" + \".pdf\\\"\").body(bytes);\n } catch (DateTimeParseException e) {\n throw new DateFormatterException(\"dd/MM/yyyy\");\n }\n }", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "@Override\n\tpublic List<Bill> viewBillsByDateRange(LocalDate startDate, LocalDate endDate) {\n\t\tList<Bill>bills = billDao.findByBillDateBetween(startDate, endDate);\n\t\tif(bills.size()==0) {\n\t\t\tthrow new BillNotFoundException(\"No bills in given date range\");\n\t\t}\n\t\treturn bills;\n\t}", "@RequestMapping(value = \"/downloadunitreports/{dept}/{unit}/{fromDate}/{toDate}/{search}/\")\n @CrossOrigin\n public byte[] downloadUnitReports(Authentication authentication, @PathVariable int dept, @PathVariable int unit, @PathVariable String fromDate, @PathVariable String toDate,@PathVariable String search, HttpServletRequest request) throws JsonProcessingException\n {\n if(!userService.userIsDepartmentUnitAuthority(authentication.getName(), dept, unit)) {\n throw new BadCredentialsException(\"\");\n }\n\n if (fromDate.equals(\"undefined\")) {\n fromDate = \"1970-01-01\";\n }\n if (toDate.equals(\"undefined\")) {\n toDate = \"2200-01-01\";\n }\n System.out.println(\"from date: \" + fromDate);\n System.out.println(\"to date: \" + toDate);\n\n ByteArrayInputStream pdfByteArrayInput = unitReportService.compileReportsIntoPdf(dept,unit,fromDate,toDate,search);\n\n return read(pdfByteArrayInput);\n\n }", "public void setDateBounds(PortfolioRecord portRecord, LocalDate fromDate, LocalDate toDate) {\n List<DataPoint> history = portRecord.getHistory();\n LocalDate minDate = history.get(0).getDate();\n LocalDate maxDate = history.get(history.size() - 1).getDate();\n\n if (fromDate != null && toDate != null && !(fromDate.equals(fromDateBound) && toDate.equals(toDateBound))) {\n userSetDates = true;\n\n if (fromDate.compareTo(minDate) < 0) {\n fromDateBound = minDate;\n } else {\n fromDateBound = fromDate;\n }\n\n if (toDate.compareTo(maxDate) > 0) {\n toDateBound = maxDate;\n } else {\n toDateBound = toDate;\n }\n\n updatePerformanceGraph(true, portRecord);\n }\n }", "public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }", "@Override\n public DebitReport getReport(Range<Date> range) {\n\n return DebitReport.builder()\n .debits(\n debitRepository.findByDateBetween(\n range.lowerEndpoint(),\n range.upperEndpoint())\n )\n .build();\n }", "public Object getReports(String indicatorName, int indicatorId,\n\t\t\tint startTimeperiod, int endTimeperiod);", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "private\n void\n createReportAndDisplayResults(Date start, Date end, TotalFilter filter)\n {\n CategoryReport report = CategoryReport.createReport(start, end, filter);\n IncomeExpenseTotal expenses = new IncomeExpenseTotal(EXPENSE_SUMMARY, TOTAL.toString());\n IncomeExpenseTotal income = new IncomeExpenseTotal(INCOME_SUMMARY, TOTAL.toString());\n\n // Add expense totals.\n for(IncomeExpenseTotal total : report.getExpenses())\n {\n getExpensePanel().getTable().add(total);\n\n // Combine all the expense totals into the total.\n expenses.setAmount(expenses.getAmount() + total.getAmount());\n }\n\n getExpensePanel().getTable().add(expenses);\n\n // Add income totals.\n for(IncomeExpenseTotal total : report.getIncome())\n {\n getIncomePanel().getTable().add(total);\n\n // Combine all the income totals into the total.\n income.setAmount(income.getAmount() + total.getAmount());\n }\n\n getIncomePanel().getTable().add(income);\n\n // Add transfer totals.\n for(TransferTotal total : report.getTransfers())\n {\n getTransferPanel().getTable().add(total);\n }\n\n // Display results.\n getExpensePanel().getTable().display();\n getIncomePanel().getTable().display();\n getTransferPanel().getTable().display();\n }", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public static List<Row> filterDate(List<Row> inputList, LocalDateTime startOfDateRange, LocalDateTime endOfDateRange) {\n\t\t//checks to ensure that the start of the range (1st LocalDateTime input) is before the end of the range (2nd LocalDateTime input)\n\t\tif(startOfDateRange.compareTo(endOfDateRange) > 0) {\n\t\t\t//if not, then send an error and return empty list\n\t\t\tGUI.sendError(\"Error: start of date range must be before end of date range.\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\tList<Row> outputList = new ArrayList<>();\n\n\t\t//iterate through inputList, adding all rows that fall within the specified date range to the outputList\n\t\tfor(Row row : inputList) {\n\t\t\tif(row.getDispatchTime().compareTo(startOfDateRange) >= 0 && row.getDispatchTime().compareTo(endOfDateRange) <= 0) {\n\t\t\t\toutputList.add(row);\n\t\t\t}\n\t\t}\n\n\t\t//outputList is returned after being populated\n\t\treturn outputList;\n\t}", "@Override\n\tpublic List<TransactionEntity> displaypassbookByDate(long accountNumber, LocalDate startDate, LocalDate endDate) throws ResourceNotFoundException {\n\t\tOptional<TransactionEntity> accountCheck = passbookDao.getAccountById(accountNumber);\n\t\tList<TransactionEntity> passbook = new ArrayList<TransactionEntity>();\n\t\tif(accountCheck.isPresent())\n\t\t{\n\t\t\tpassbook = passbookDao.displaypassbookByDate1(accountNumber, startDate, endDate);\n\t\t}\n\t\telse\n\t\t\tthrow new ResourceNotFoundException(\"Account does not exist\");\n\n\t\t\n\t\treturn passbook;\n\t}", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@RequestMapping(\"/getPdfBetweenTwoDate\")\n\tpublic ModelAndView pdfBydate(@RequestParam Long id,@RequestParam (name=\"astart\") String start,\n\t\t\t@RequestParam (name=\"aend\") String end)\n\t{\n\t ModelAndView mv= new ModelAndView(\"redirect:/userDetails\");\n\t\t LocalDate first=LocalDate.parse(start);\n\t\t LocalDate second=LocalDate.parse(end);\n\t\t long days= ChronoUnit.DAYS.between(first,second);\n\t\t if(days>1)\t appraisalService.setAppraisalByDate(id, first, second);\n\t\t else {\n\t\t\t mv.addObject(\"errorInApp\", true);\n\t\t\t error(id);\n\t\t }\n\t\t mv.addObject(\"randomApp\",true);\n\t\t mv.addObject(\"id\",id);\n\t\t mv.addObject(\"astart\",start.toString());\n\t\t mv.addObject(\"aend\",end.toString());\n\n\t\treturn mv;\n\t}", "Map<Date, Double> getValues(final FinancialAnalysisParameter financialParameter,\n final Date dateFrom, final Date dateTo);", "public static void main(String[] args) {\n DateMidnight start = new DateMidnight(\"2019-07-01\");\n DateMidnight end = new DateMidnight(\"2019-07-22\");\n\n // Get days between the start date and end date.\n int days = Days.daysBetween(start, end).getDays();\n\n // Print the result.\n System.out.println(\"Days between \" +\n start.toString(\"yyyy-MM-dd\") + \" and \" +\n end.toString(\"yyyy-MM-dd\") + \" = \" +\n days + \" day(s)\");\n\n // Using LocalDate object.\n LocalDate date1 = LocalDate.parse(\"2019-07-01\");\n LocalDate date2 = LocalDate.now();\n days = Days.daysBetween(date1, date2).getDays();\n\n // Print the result.\n System.out.println(\"Days between \" +\n date1.toString(\"yyyy-MM-dd\") + \" and \" +\n date2.toString(\"yyyy-MM-dd\") + \" = \" +\n days + \" day(s)\");\n }", "public Result getStudyReport(String identifier, String startDateString, String endDateString) {\n UserSession session = getAuthenticatedSession();\n \n LocalDate startDate = getLocalDateOrDefault(startDateString, null);\n LocalDate endDate = getLocalDateOrDefault(endDateString, null);\n \n DateRangeResourceList<? extends ReportData> results = reportService\n .getStudyReport(session.getStudyIdentifier(), identifier, startDate, endDate);\n \n return okResult(results);\n }", "public void fillList(int roomid, String inputdateTo, String inputdateFrom) {\n list = new ArrayList();\n Connection cnn = null;\n Statement st = null;\n ResultSet rs = null;\n\n String sql = \"select sche.scheduleID as ID,shift.shiftname as shiftname,lab.roomName as roomName,d.dateword as datework,\"\n + \" we.keyword as keywork,sche.status as status,sche.dateworkID sdateworkID from tbl_schedule as sche inner join \"\n + \" tbl_shiftname as shift on sche.shiftID=shift.shiftID inner \"\n + \" join tbl_labroom as lab on sche.roomID=lab.roomID inner join \"\n + \" tbl_datework as d on sche.dateworkID=d.datewordID inner join \"\n + \" days_week as we on d.dayID=we.dayID where lab.roomID=\" + roomid;\n if (inputdateTo.trim().length() > 3) {\n sql += \" and d.dateword >='\" + inputdateTo + \"'\";\n }\n if (inputdateFrom.trim().length() > 3) {\n sql += \" and d.dateword <='\" + inputdateFrom + \"'\";\n }\n sql += \" order by ID desc \";\n //String connectionURL = \"jdbc:odbc:sem4\";\n try {\n //Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n //cnn = DriverManager.getConnection(connectionURL, \"lab\", \"\");\n cnn = dbconnect.Connect();\n st = cnn.createStatement();\n rs = st.executeQuery(sql);\n int count = 0;\n String ID = \"\";\n String shiftname = \"\";\n String status = \"\";\n String roomName = \"\";\n String datework = \"\";\n String daysweek = \"\";\n int dateworkID = 0;\n SimpleDateFormat formarter = new SimpleDateFormat(\"EE, MMM d,yyyy\");\n while (rs.next()) {\n count = count + 1;\n ID += rs.getInt(\"ID\") + \"/\";\n shiftname += rs.getString(\"shiftname\") + \"/\";\n roomName = rs.getString(\"roomName\");\n\n datework = formarter.format(rs.getDate(\"datework\"));\n daysweek = rs.getString(\"keywork\");\n status += rs.getString(\"status\") + \"/\";\n dateworkID = rs.getInt(\"sdateworkID\");\n int totalShift = cntShiftShow();\n if (count % totalShift == 0) {\n list.add(new classSchedule(ID, shiftname, roomName, datework, daysweek, status, dateworkID));\n ID = \"\";\n shiftname = \"\";\n status = \"\";\n roomName = \"\";\n datework = \"\";\n daysweek = \"\";\n }\n\n }\n } catch (SQLException ex) {\n Logger.getLogger(showSchedule.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "@Override\n\t@Transactional(readOnly=true)\n\tpublic Page<ProductDTO> findByDateOfExpiryBetweenAndVisibleTrue(LocalDate from, LocalDate to, Pageable pageable) {\n\t\tlog.debug(\"Request to get all Products by dateOfExpiry from \"+from+\" to \"+to);\n return productRepository.findByDateOfExpiryBetweenAndVisibleTrue(from,to,pageable)\n .map(productMapper::toDto);\n\t}", "protected List<Daily_report> getListVisited(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n TypedQuery<Daily_report> typedQuery = null;\n final StringBuilder query = new StringBuilder();\n query.append(\" FROM Daily_report A LEFT JOIN FETCH A.daily_activity_type B\");\n query.append(\" LEFT JOIN FETCH A.company_mst C\");\n query.append(\" LEFT JOIN FETCH A.employee_mst D \");\n\n query.append(\" WHERE C.com_delete_flg = 'false' AND D.emp_delete_flg = 'false' \");\n query.append(\" AND A.dai_work_date >= :startDate AND A.dai_work_date <= :endDate\");\n query.append(\" AND C.com_company_code IN (:companyCodes)\");\n query.append(\" ORDER BY C.com_company_code DESC\");\n\n typedQuery = super.emMain.createQuery(query.toString(), Daily_report.class).setParameter(\"startDate\", startDate)\n .setParameter(\"endDate\", endDate);\n\n typedQuery.setParameter(\"companyCodes\", companyCodes);\n List<Daily_report> results = typedQuery.getResultList();\n return results;\n }", "@Override\r\n\tpublic ArrayList<SalesReturnBillPO> getBillsByDate(String from, String to) throws RemoteException {\n\t\tArrayList<SalesReturnBillPO> bills=new ArrayList<SalesReturnBillPO>();\r\n\t\ttry{\r\n\t\t\tStatement s=DataHelper.getInstance().createStatement();\r\n\t\t\tResultSet r=s.executeQuery(\"SELECT * FROM \"+billTableName+\r\n\t\t\t\t\t\" WHERE generateTime>'\"+from+\"' AND generateTime<DATEADD(DAY,1,\"+\"'\"+to+\"');\");\r\n\t\t\twhile(r.next()){\r\n\t\t\t\tSalesReturnBillPO bill=new SalesReturnBillPO();\r\n\t\t\t\tbill.setCustomerId(r.getString(\"SRBCustomerID\"));\r\n\t\t\t\tbill.setDate(r.getString(\"generateTime\").split(\" \")[0]);\r\n\t\t\t\tbill.setId(r.getString(\"SRBID\"));\r\n\t\t\t\tbill.setOperatorId(r.getString(\"SRBOperatorID\"));\r\n\t\t\t\tbill.setOriginalSBId(r.getString(\"SRBOriginalSBID\"));\r\n\t\t\t\tbill.setOriginalSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setRemark(r.getString(\"SRBRemark\"));\r\n\t\t\t\tbill.setReturnSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setSalesManName(r.getString(\"SRBSalesmanName\"));\r\n\t\t\t\tbill.setState(r.getInt(\"SRBCondition\"));\r\n\t\t\t\tbill.setTime(r.getString(\"generateTime\").split(\" \")[1]);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bills.size();i++){\r\n\t\t\t\tStatement s1=DataHelper.getInstance().createStatement();\r\n\t\t\t\tResultSet r1=s1.executeQuery(\"SELECT * FROM \"+recordTableName+\r\n\t\t\t\t\t\t\" WHERE SRRID=\"+bills.get(i).getId()+\";\");\r\n\t\t\t\tArrayList<SalesItemsPO> items=new ArrayList<SalesItemsPO>();\r\n\t\t\t\t\r\n\t\t\t\twhile(r1.next()){\r\n\t\t\t\t\tSalesItemsPO item=new SalesItemsPO(\r\n\t\t\t\t\t\t\tr1.getString(\"SRRComID\"),\r\n\t\t\t\t\t\t\tr1.getString(\"SRRRemark\"),\r\n\t\t\t\t\t\t\tr1.getInt(\"SRRComQuantity\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRPrice\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRComSum\"));\r\n\t\t\t\t\titems.add(item);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbills.get(i).setSalesReturnBillItems(items);;\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bills;\r\n\t}", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "public List<TimeSheet> getTimeSheetByPid(Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheetByPid(pid, startDate, endDate);\n }", "@RequestMapping(path = \"/specificDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getIssuesByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\treturn deliveryIssueList.stream().filter(\n\t\t\t\tdeliveryIssue -> !instantIsBetweenDates(\n\t\t\t\t\t\tdeliveryIssue.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "public List<SaleInvoice> filterByPeriod(Date startDate, Date endDate) {\n // Normalized Datetime to the beginning and very end of the date\n Date normStartDate = DateUtils.normalizeDateAtStart(startDate);\n Date normEndDate = DateUtils.normalizeDateAtEnd(endDate);\n return saleInvoiceRepository.findAllByDateBetween(normStartDate, normEndDate);\n }", "public ArrayList<String> populateLogNameList(String from, String to){\r\n\tConnection con=null;\r\n\t\r\n\t\tArrayList<String> testNameList=new ArrayList<String>();\r\n\t\r\n\ttry {\r\n\t\t\r\n con = Connect.prepareConnection();\r\n con.setAutoCommit(false);\r\n ResultSet rs=null;\r\n //count number of records for which processing of sheets has been started or completed\r\n PreparedStatement ps = null; SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\"); \r\n\t\t\r\n\t\tjava.util.Date fromdate = sdf.parse(from); \r\n\t\tjava.sql.Timestamp timest = new java.sql.Timestamp(fromdate.getTime()); \r\n\t\t\r\n\t\tjava.util.Date todate = sdf.parse(to); \r\n\t\tjava.sql.Timestamp timeen = new java.sql.Timestamp(todate.getTime()); \r\n\t\t\r\n ps = con.prepareStatement(\r\n \"SELECT distinct Test_name FROM testheader where (Test_status=? OR Test_status=?) AND Conduct_date BETWEEN ? AND ? order by Test_name\");\r\n ps.setString(1, message.getString(\"processed\"));\r\n ps.setString(2, message.getString(\"processed\"));\r\n ps.setTimestamp(3, timest);\r\n ps.setTimestamp(4, timeen);\r\n \r\n rs = ps.executeQuery();\r\n \r\n \t while(rs.next()){\r\n \t\t testNameList.add(rs.getString(1));\r\n }\r\n \r\n \t con.commit();\r\n \r\n }\r\n catch(Exception e){\r\n \tlog.error(\"error in retrieving test name for log interface \" + e);\r\n }\r\n finally{\r\n \tConnect.freeConnection(con);\r\n }\r\n \treturn testNameList;\r\n \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 List<SaleInvoice> getAllSaleInvoicesByCustomerAndPeriod(int customerId, Date startDate, Date endDate) {\n // Find customer\n Customer customer = customerRepository.findById(customerId).orElseThrow(NullPointerException::new);\n // Normalized Datetime to the beginning and very end of the date\n Date normStartDate = DateUtils.normalizeDateAtStart(startDate);\n Date normEndDate = DateUtils.normalizeDateAtEnd(endDate);\n return saleInvoiceRepository.findSaleInvoicesByCustomerAndDateBetween(customer, normStartDate, normEndDate);\n }", "public void searchAvailability(Connection connection, String hotel_name, int branchID, java.sql.Date from, java.sql.Date to) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT type, num_avail, price FROM Information WHERE hotel_name = ? AND branch_ID = ? AND date_from >= Convert(datetime, ?) AND date_to <= Convert(datetime, ?)\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n pStmt.setDate(3, from);\n pStmt.setDate(4, to);\n\n try {\n\n System.out.printf(\" Availiabilities at %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.printf(\" Date Listing: \" + String.valueOf(from) + \" TO \" + String.valueOf(to) + \"\\n\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2) + \" \" + rs.getInt(3));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\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 }", "public static void main(String[] args) {\n\t\tString in=new String();\r\n\t\tString out=new String();\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter date\");\r\n in=s.nextLine();\r\n System.out.println(\"enter another date\");\r\n out=s.nextLine();\r\n\t\t\r\n\t\tLocalDate enteredDate=LocalDate.parse(in);\r\n\t\tLocalDate enteredDate1=LocalDate.parse(out);\r\n\t\t\r\n\t\t//System.out.println(\"Entered Date:\"+enteredDate);\r\n\t\r\n\t\t//LocalDate ld=LocalDate.now();\r\n\t\tPeriod p=enteredDate.until(enteredDate1);\r\n\t\t\r\n\t\tSystem.out.println(p.getDays());\r\n\t\tSystem.out.println(p.getMonths());\r\n\t\tSystem.out.println(p.getYears());\r\n\t}", "@RequestMapping(path = \"/availability\", method = RequestMethod.GET)\n public List<ReservationDTO> getAvailability(\n @RequestParam(value = \"start_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate startDate,\n @RequestParam(value = \"end_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate endDate) {\n\n Optional<LocalDate> optStart = Optional.ofNullable(startDate);\n Optional<LocalDate> optEnd = Optional.ofNullable(endDate);\n\n if (!optStart.isPresent() && !optEnd.isPresent()) {\n //case both are not present, default time is one month from now\n startDate = LocalDate.now();\n endDate = LocalDate.now().plusMonths(1);\n } else if (optStart.isPresent() && !optEnd.isPresent()) {\n //case only start date is present, default time is one month from start date\n endDate = startDate.plusMonths(1);\n } else if (!optStart.isPresent()) {\n //case only end date is present, default time is one month before end date\n startDate = endDate.minusMonths(1);\n } // if both dates are present, do nothing just use them\n\n List<Reservation> reservationList = this.service\n .getAvailability(startDate, endDate);\n\n return reservationList.stream().map(this::parseReservation).collect(Collectors.toList());\n }", "public ArrayList<Salary> getSalariesByStartDateAndEndDateAndEmployeeId(String startDate,\n String endDate,\n String employeeId) {\n ArrayList<Salary> salaries = new ArrayList<>();\n for (Salary s : allSalaries.values()) {\n if (s.getEmployeeId().equals(employeeId)) {\n try {\n Date start = CalendarUtil.sdfDayMonthYear.parse(startDate);\n Date currentStart = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayBatDau());\n Date end = CalendarUtil.sdfDayMonthYear.parse(endDate);\n Date currentEnd = CalendarUtil.sdfDayMonthYear.parse(EventRepository.getInstance()\n .getEventByEventId(s.getEventId()).getNgayKetThuc());\n if ((start.compareTo(currentStart) <= 0 && currentStart.compareTo(end) <= 0) ||\n start.compareTo(currentEnd) <= 0 && currentEnd.compareTo(end) <= 0) {\n salaries.add(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n return salaries;\n }", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "public List<String> getAccountBetweenDate(String first_date, String second_date) throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<String> accountList= session.createQuery(\"select account_no from Account where date(opening_date) BETWEEN '\"+first_date+\"' AND '\"+second_date+\"'\",String.class).list();\n return AccountDto.AccountBtwDate(accountList);\n }", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "public void searchHotelReservations(Connection connection, String hotel_name, int branchID, LocalDate checkIn, LocalDate checkOut) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT c_id, res_num, check_in, check_out FROM Booking WHERE hotel_name = ? AND branch_ID = ? AND check_in >= to_date(?, 'YYYY-MM-DD') AND check_out <= to_date(?, 'YYYY-MM-DD')\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n\n if (checkIn == null && checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkIn == null){\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, checkOut.toString());\n }\n else {\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, checkOut.toString());\n }\n\n try {\n\n System.out.printf(\" Reservations for %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\" \" + rs.getString(1) + \" \" + rs.getInt(2));\n System.out.println(\" Reservation DATES: \" + rs.getDate(3) + \" TO \" + rs.getDate(4));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "@RequestMapping(value = \"/v1/getAllPendingRequests\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<MyRequestReportResponse>> getAllPendingRequests(\n\t\t\t@RequestParam(value = \"fromDate\", required = false) String fromDate,\n\t\t\t@RequestParam(value = \"toDate\", required = false) String toDate,\n\t\t\t@RequestHeader(\"x-location-name\") String locationName)\n\t\t\tthrows SystemException {\n\t\tLOGGER.info(\"Invoking getAllPendingRequests api...\");\n\t\tLOGGER.info(\"Entered locationName :\" + locationName);\n\t\tErrorMessage errMsg = new ErrorMessage();\n\t\tList<MyRequestReportResponse> myRequestReportResponses = null;\n\n\t\t// validate location name\n\t\tif (!validationUtils.isValidateLocation(locationName, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\t// validating dates if passed in request\n\t\tif (!validationUtils.validateDates(fromDate, toDate, errMsg)) {\n\t\t\tthrow new SystemException(errMsg.getErrCode(), errMsg.getErrMsg(),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\ttry {\n\n\t\t\tmyRequestReportResponses = requestService.getAllPendingRequests(\n\t\t\t\t\tlocationName, fromDate, toDate);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tLOGGER.error(\"Error getting while processing request to get allPendingRequests from inventory \"\n\t\t\t\t\t+ e);\n\t\t\tthrow new SystemException(Constants.FIVE_THOUSAND_SEVEN,\n\t\t\t\t\tConstants.INTERNAL_SERVER_ERROR,\n\t\t\t\t\tHttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t\treturn new ResponseEntity<List<MyRequestReportResponse>>(\n\t\t\t\tmyRequestReportResponses, HttpStatus.ACCEPTED);\n\t}", "@RequestMapping(value=\"/filter\",method=RequestMethod.GET)\n\t@ResponseBody public List<FaculityLeaveMasterVO> filterByDate(Model model,@RequestParam(\"empId\") String empId, @RequestParam(\"date1\") String d1, @RequestParam(\"date2\") String d2,HttpSession session) throws IOException {\n\t\tString eid=empId;\n\t\t\n\t\tSimpleDateFormat myFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP1 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr1 = null;\n\t\ttry {\n\t\t\treformattedStr1 = myFormat1.format(formatJSP1.parse(d1));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tSimpleDateFormat myFormat2 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\n\t\tSimpleDateFormat formatJSP2 = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString reformattedStr2 = null;\n\t\ttry {\n\t\t\treformattedStr2 = myFormat2.format(formatJSP2.parse(d2));\n\t\t} catch (ParseException e){\n\t\t\te.printStackTrace();}\n\n\t\tList<FaculityLeaveMasterVO> faculityLeaveMasterVOslist=basFacultyService.sortLeaveByDate(reformattedStr1, reformattedStr2, eid);\n\t\tfor(FaculityLeaveMasterVO faculityLeaveMasterVO : faculityLeaveMasterVOslist){\n\t\t\t if(faculityLeaveMasterVO.getLeaveFrom()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateFrom( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveFrom()));\n\t\t\t if(faculityLeaveMasterVO.getLeaveTo()!=null)\n\t\t\t faculityLeaveMasterVO.setSdateTo( DateUtils.convertDateIntoString(faculityLeaveMasterVO.getLeaveTo()));\n\t\t\t// System.out.println(\"leave from : \"+t.getLeaveFrom()+\" leave to :\"+faculityLeaveMasterVO.getLeaveTo()+\"---------\"+t.getLeaveDates());\n\t\t}\n\t\treturn faculityLeaveMasterVOslist;\n\t\t//System.out.println(\"-------sfsfsfs----------\"+eid);\n\t}", "public static ArrayList<CustomerBean> getCutomers(Date fromDate, Date toDate) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where created_on BETWEEN(\"\r\n\t\t\t\t\t+ fromDate + \"\" + toDate + \") ;\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "@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 }", "private void main_flow_manual_export(String dateFrom, String dateTo) throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n// String last_export_date = dateFrom;\r\n// last_export_date = HelpM.get_date_time_minus_some_time_in_ms(last_export_date, \"yyyy-MM-dd HH:mm:ss\", 600000);// 10 min\r\n //======================\r\n export_procedure_2(dateFrom, dateTo);\r\n //======================\r\n //\r\n if (NEW_RECORDS_FOUND) {\r\n wait_();\r\n String msg = \" (nr rec.= \" + (BufferedDBWriterSuper.total_nr_recorded_entries - 1) + \" )\";\r\n SimpleLoggerLight.logg(\"main_flow.log\", msg);\r\n// write_to_update_table(\"main_flow\", \"\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n } else {\r\n SimpleLoggerLight.logg_no_append(\"last_check.log\", \"-> LAST CHECK\");\r\n// write_to_update_table(\r\n// \"main_flow\", \"last_check\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n }\r\n }", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public List<Login> getUsers(Date startDate, Date endDate);", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "public ArrayList<ReverseChargeListDetail> getReverseChargeListDetailReport(\n\t\t\tString payeeName, FinanceDate fromDate, FinanceDate toDate,\n\t\t\tlong companyId) throws DAOException, ParseException {//\n\t\t// /////////\n\t\t// //////\n\t\t// //////\n\n\t\tSession session = HibernateUtil.getCurrentSession();\n\n\t\tQuery query = session\n\t\t\t\t.getNamedQuery(\"getReverseChargeListDetailReportEntries\")\n\t\t\t\t.setParameter(\"startDate\", fromDate.getDate())\n\t\t\t\t.setParameter(\"endDate\", toDate.getDate())\n\t\t\t\t.setParameter(\"companyId\", companyId);\n\n\t\tMap<String, List<ReverseChargeListDetail>> maps = new LinkedHashMap<String, List<ReverseChargeListDetail>>();\n\n\t\tList list = query.list();\n\t\tIterator it = list.iterator();\n\t\tlong tempTransactionItemID = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tObject[] object = (Object[]) it.next();\n\n\t\t\tif (((String) object[1]) != null\n\t\t\t\t\t&& ((String) object[1]).equals(payeeName)) {\n\n\t\t\t\tReverseChargeListDetail r = new ReverseChargeListDetail();\n\n\t\t\t\tr.setAmount((Double) object[0]);\n\t\t\t\tr.setCustomerName((String) object[1]);\n\t\t\t\tr.setMemo((String) object[2]);\n\t\t\t\tr.setName(payeeName);\n\t\t\t\tr.setNumber((String) object[3]);\n\t\t\t\tr.setPercentage((Boolean) object[4]);\n\t\t\t\tr.setSalesPrice((Double) object[5]);\n\t\t\t\tr.setTransactionId((Long) object[6]);\n\t\t\t\tr.setTransactionType((Integer) object[7]);\n\t\t\t\tr.setDate(new ClientFinanceDate((Long) object[9]));\n\n\t\t\t\tif (maps.containsKey(r.getCustomerName())) {\n\t\t\t\t\tmaps.get(r.getCustomerName()).add(r);\n\t\t\t\t} else {\n\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\treverseChargesList.add(r);\n\t\t\t\t\tmaps.put(r.getCustomerName(), reverseChargesList);\n\t\t\t\t}\n\n\t\t\t\tif (tempTransactionItemID == 0\n\t\t\t\t\t\t|| ((Long) object[12]) != tempTransactionItemID) {\n\n\t\t\t\t\tReverseChargeListDetail r2 = new ReverseChargeListDetail();\n\n\t\t\t\t\ttempTransactionItemID = ((Long) object[12]);\n\n\t\t\t\t\tr2.setAmount((Double) object[8]);\n\t\t\t\t\tr2.setCustomerName((String) object[1]);\n\t\t\t\t\tr2.setDate(new ClientFinanceDate((Long) object[9]));\n\t\t\t\t\tr2.setMemo((String) object[10]);\n\t\t\t\t\tr2.setName((String) object[1]);\n\t\t\t\t\tr2.setNumber((String) object[3]);\n\t\t\t\t\tr2.setPercentage(false);\n\t\t\t\t\tr2.setSalesPrice((Double) object[11]);\n\t\t\t\t\tr2.setTransactionId((Long) object[6]);\n\t\t\t\t\tr2.setTransactionType((Integer) object[7]);\n\n\t\t\t\t\tif (maps.containsKey(r2.getCustomerName())) {\n\t\t\t\t\t\tmaps.get(r2.getCustomerName()).add(r2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<ReverseChargeListDetail> reverseChargesList = new ArrayList<ReverseChargeListDetail>();\n\t\t\t\t\t\treverseChargesList.add(r2);\n\t\t\t\t\t\tmaps.put(r2.getCustomerName(), reverseChargesList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString[] names = new String[maps.keySet().size()];\n\n\t\tmaps.keySet().toArray(names);\n\n\t\tArrays.sort(names, String.CASE_INSENSITIVE_ORDER);\n\n\t\tList<ReverseChargeListDetail> reverseCharges = new ArrayList<ReverseChargeListDetail>();\n\n\t\tfor (String s : names) {\n\n\t\t\treverseCharges.addAll(maps.get(s));\n\t\t}\n\n\t\treturn new ArrayList<ReverseChargeListDetail>(reverseCharges);\n\t}", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "@Override\n\tpublic List<TransactionHistory> getTransactionByDateRange(String userID,\n\t\t\tDate dateFrom, Date dateTo, int state) {\n\t\tList<TransactionHistory> result = null;\n\t\t\n\t\tTypedQuery<TransactionHistory> query = em.createQuery(\"SELECT t FROM TransactionHistory t WHERE\"\n\t\t\t\t+ \" (t.sendAccount.id = :id OR t.receiveAccount.id = :id) \"\n\t\t\t\t+ \"AND t.state.idState = :state \"\n\t\t\t\t+ \"AND (t.date >= :dateFrom AND t.date <= :dateTo)\", TransactionHistory.class);\t\t\t\n\t\t\n\t\tquery.setParameter(\"id\", userID);\n\t\tquery.setParameter(\"state\", state);\n\t\tquery.setParameter(\"dateFrom\", dateFrom);\n\t\tquery.setParameter(\"dateTo\", dateTo);\n\t\tresult = query.getResultList();\n\t\t\n\t\treturn result;\n\t}", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n public void onDateRangeSelected(int startDay, int startMonth, int startYear, int endDay, int endMonth, int endYear) {\n DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());\n Calendar c = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c.set(startYear,startMonth,startDay);\n c2.set(endYear, endMonth,endDay);\n\n String dataInicio = \"Start \" + df.format(c.getTime()) + \"\\n\";\n String dataFim = \" End \" + df.format(c2.getTime()) ;\n\n txt_inform.setText(dataInicio);\n txt_inform.append(dataFim);\n\n }", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public Monthly_report_revision getLatestInfoForMonthlyReport(final Monthly_report_revision monthlyReport,\n final Employee_mst selectedEmp, final Date startDate, final Date endDate) {\n\n // Working days\n final int actualWorkingDay = this.dailyRepo\n .getListActualWorkingDay(selectedEmp.getEmp_code(), startDate, endDate).getResultList().size();\n monthlyReport.setNyuryoku_nissuu(actualWorkingDay);\n\n // Total visit\n final long totalVisit = this.dailyRepo\n .countTotalDailyReportOfEmployeeByStartDateAndEndDate(selectedEmp.getEmp_code(), startDate, endDate)\n .getAnyResult();\n monthlyReport.setSou_houmon_kensuu((int) totalVisit);\n\n // Software\n this.setVisitInfoForMonthlyReport(monthlyReport, selectedEmp.getEmp_code(), startDate, endDate);\n\n // Purpose\n this.setPurposeInfoForMonthlyReport(monthlyReport, selectedEmp.getEmp_code(), startDate, endDate);\n\n monthlyReport.setHoumon_saki_kigyou_ichiran(\n this.getListVisitedCompanies(selectedEmp.getEmp_code(), startDate, endDate));\n\n return monthlyReport;\n }", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}" ]
[ "0.7721996", "0.73813975", "0.64381486", "0.64092994", "0.63498485", "0.63196194", "0.60277903", "0.59812725", "0.5960985", "0.59178513", "0.588276", "0.5879336", "0.5854925", "0.58324945", "0.5810058", "0.5783424", "0.57588696", "0.5746882", "0.57239985", "0.5707031", "0.5700893", "0.5695487", "0.5692505", "0.5657763", "0.5638469", "0.5606567", "0.55928504", "0.55878913", "0.55745906", "0.556769", "0.5561768", "0.55456233", "0.552402", "0.55167186", "0.54846746", "0.5457359", "0.54568887", "0.5446763", "0.5443506", "0.54364365", "0.53976667", "0.53677243", "0.53606576", "0.5338064", "0.5330268", "0.53197706", "0.5317749", "0.53037417", "0.53004324", "0.5292289", "0.52866066", "0.5285795", "0.52737474", "0.5268739", "0.52408034", "0.5227776", "0.5223937", "0.5215526", "0.52085364", "0.5187747", "0.5187296", "0.5184894", "0.51615757", "0.515412", "0.51456547", "0.51393473", "0.5109601", "0.51053977", "0.510351", "0.5102149", "0.5101705", "0.5098942", "0.50909156", "0.5086823", "0.5078842", "0.50591683", "0.5059084", "0.50549006", "0.50484914", "0.50481623", "0.50456476", "0.5041499", "0.5039618", "0.5038969", "0.5034367", "0.50301903", "0.50202036", "0.50187016", "0.50051755", "0.50035596", "0.49992982", "0.4996162", "0.499315", "0.49660972", "0.49652615", "0.49642044", "0.4954507", "0.49530816", "0.49524307", "0.49502027" ]
0.7907536
0
This method returns today attendance details as Json object array to frontend.
@RequestMapping(value = "/getTodayReport", method = RequestMethod.GET) public @ResponseBody String getDayWiseReport() { logger.info("in ReportGenerationController getDayWiseReport()"); String reportDetails = reportGenerationService.getTodayReport(); return reportDetails; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Attendance> findAttendanceList() {\n\t\treturn attendanceMapper.findAttendanceList();\n\t}", "@Override\r\n\tpublic List<DoctorWiseAppointmentDetailsRes> fetchDoctorWiseAppointmentDetailsJson(DoctorIdReq doctorIdReq) {\r\n\t\tList<Map<String, Object>> doctorWiseAppointmentList = invoiceReportPDFDao.fetchDoctorWiseAppointmentDetails(\r\n\t\t\t\tnew InvoiceRequestBean().withOrgId(doctorIdReq.getOrgId()).withFromDate(doctorIdReq.getFromDate())\r\n\t\t\t\t\t\t.withToDate(doctorIdReq.getToDate()).withDoctorId((doctorIdReq.getDoctorId())));\r\n\t\tcheckListSize(doctorWiseAppointmentList);\r\n\t\tList<DoctorWiseAppointmentDetailsRes> deptWiseAppointmentDetailsRes = new ArrayList<>();\r\n\t\tfor (Map<String, Object> dataMap : doctorWiseAppointmentList) {\r\n\t\t\tDoctorWiseAppointmentDetailsRes bean = new DoctorWiseAppointmentDetailsRes();\r\n\t\t\tbean.setAppointmentDate(objectToString(dataMap.get(\"appointment_date\")));\r\n\t\t\tbean.setHosPatientId(objectToString(dataMap.get(\"hos_patient_id\")));\r\n\t\t\tbean.setPatientName(objectToString(dataMap.get(\"patient_name\")));\r\n\t\t\tbean.setMobileNo(objectToString(dataMap.get(\"mobile_no\")));\r\n\t\t\tbean.setAppointmentType(objectToString(dataMap.get(\"appointment_type\")));\r\n\t\t\tbean.setDoctorNm(objectToString(dataMap.get(\"doctor_nm\")));\r\n\t\t\tbean.setServiceNm(objectToString(dataMap.get(\"service_nm\")));\r\n\t\t\tdeptWiseAppointmentDetailsRes.add(bean);\r\n\r\n\t\t}\r\n\r\n\t\treturn deptWiseAppointmentDetailsRes;\r\n\t}", "public String[][] getAttendance(){\r\n\t\treturn attendance;\r\n\r\n\t}", "List<Appointment> getCurrentlyAppointment();", "public String[] getCurrentTime(){\n return responseData;\n }", "@Transactional(propagation = Propagation.REQUIRED)\n\tpublic String getEmployeeListJSON(){\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t\t\t.setDateFormat(\"dd/MM/yyyy\")\n\t\t\t\t\t\t.create();\n\t\t String rtnString = gson.toJson(daoImpl.getEmployees());\n\t\t \n\t\t return rtnString;\n\t}", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "public List<Appointment> getAllDetailsRecp();", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord()\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord();\n\t}", "public List<String> getFormattedAppointments(){\n List formattedAppointments = new ArrayList();\n for (int i = 0; i < appointments.size(); i++) {\n Appointment a = appointments.get(i);\n String appInfo = (\"Date and time: \" + a.getFormattedDate() + \" Doctor: \" + a.getDoctor().getName() + \" Symptom: \" + a.getSympton() + \" Status: \" + a.getStatus());\n formattedAppointments.add(appInfo);\n }\n return formattedAppointments;\n }", "public String ajaj() {\n try {\n monthlyExpends = MonthlyExpenditureCache.getCache();\n monthlyExpendsJson = new JSONArray();\n for (MonthlyExpenditure monthlyExpend : monthlyExpends) {\n JSONObject monthlyExpendJson = new JSONObject();\n JSONArray cateExpendsJson = new JSONArray();\n JSONArray statExpendsJson = new JSONArray();\n monthlyExpendJson.put(\"total\", monthlyExpend.total());\n monthlyExpendJson.put(\n \"date\",\n CalendarUtils.toString(CalendarUtils.YM,\n monthlyExpend.getDate()));\n monthlyExpendJson.put(\"expenditures\", cateExpendsJson);\n monthlyExpendJson.put(\"statisticalExpenditures\",\n statExpendsJson);\n monthlyExpendsJson.add(monthlyExpendJson);\n // expenditures - category : list[expend]\n for (String cateName : monthlyExpend.getExpenditures().keySet()) {\n JSONArray expendsJson = new JSONArray();\n for (Expenditure expend : monthlyExpend.getExpenditures()\n .get(cateName)) {\n JSONObject expendJson = new JSONObject();\n expendJson.put(\"category\", expend.getCategory()\n .getName());\n expendJson.put(\"date\", CalendarUtils.toString(\n CalendarUtils.YMD, expend.getDate()));\n expendJson.put(\"name\", expend.getName());\n expendJson.put(\"howMuch\", expend.getHowMuch());\n expendsJson.add(expendJson);\n }\n cateExpendsJson.add(expendsJson);\n }\n // statisticalExpenditures - category : statistical expend\n for (String cateName : monthlyExpend\n .getStatisticalExpenditures().keySet()) {\n Expenditure statExpend = monthlyExpend\n .getStatisticalExpenditures().get(cateName);\n JSONObject statExpendJson = new JSONObject();\n statExpendJson.put(\"category\", statExpend.getCategory()\n .getName());\n statExpendJson.put(\"date\", CalendarUtils.toString(\n CalendarUtils.YMD, statExpend.getDate()));\n statExpendJson.put(\"howMuch\", statExpend.getHowMuch());\n statExpendJson.put(\"average\", statExpend.getAverage());\n statExpendsJson.add(statExpendJson);\n }\n }\n } catch (Exception e) {\n PrintUtils.error(this.getClass(), e);\n return ERROR;\n }\n return SUCCESS;\n }", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\r\n\tpublic Map<String, double[]> getHallAttendance() {\n\t\tMap<String, double[]> result = new HashMap<String, double[]>();\r\n\t\tdouble[] hall1 = new double[7];\r\n\t\tdouble[] hall2 = new double[7];\r\n\t\tdouble[] hall3 = new double[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tCinemaCondition cinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\tif (cinemaCondition!=null) {\r\n\t\t\thall1[0] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\thall2[0] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\thall3[0] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\t\t\r\n\t\t}\r\n\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tcinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\t\tif (cinemaCondition!=null) {\r\n\t\t\t\thall1[i+1] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\t\thall2[i+1] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\t\thall3[i+1] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresult.put(\"一号影厅\", hall1);\r\n\t\tresult.put(\"二号影厅\", hall2);\r\n\t\tresult.put(\"三号影厅\", hall3);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public List<AttendanceRecord> getMyAttendance(SystemAccount user, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getStaffId().equalsIgnoreCase(user.getStaff().getStaffId()) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"frontInfo\", frontInfo);\n json.put(\"backInfo\", backInfo);\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(startTime);\n\n json.put(\"startTime\", formattedDate);\n json.put(\"cardID\", cardID);\n return json;\n }", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@GetMapping(\"/get_all_employees\")\n public String getAllEmployees(){\n\n Gson gsonBuilder = new GsonBuilder().create();\n List<Employee> initial_employee_list = employeeService.get_all_employees();\n String jsonFromJavaArray = gsonBuilder.toJson(initial_employee_list);\n\n return jsonFromJavaArray;\n }", "public List<AttendanceRecord> getAllAttendance(String loc, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getLocation().equalsIgnoreCase(loc) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}", "public JSONObject ownGetView()\n {\n JSONObject jsonObject = new JSONObject();\n try\n {\n jsonObject.put(\"task\", currentTask.getTask());\n jsonObject.put(\"location\", currentTask.getLocation());\n jsonObject.put(\"starttime\", currentTask.getStartTime());\n currentTask.setStopStime(currentTask.getCurrentTime());\n jsonObject.put(\"stoptime\", currentTask.getStopStime());\n currentTask.recalculateTime();\n jsonObject.put(\"time\",currentTask.getTime());\n jsonObject.put(\"timeinseconds\",currentTask.getTimeInSeconds());\n jsonObject.put(\"gps\", currentTask.getGps());\n jsonObject.put(\"notes\", currentTask.getNotes());\n jsonObject.put(\"inmotion\", currentTask.isInMotion());\n jsonObject.put(\"edited\", currentTask.isEdited());\n }\n\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n return jsonObject;\n }", "@Override\r\n\tpublic List<Attendance> listAttendanceByMonth(LocalDate month)\r\n\t{\n\t\treturn null;\r\n\t}", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "@Override\n public String toString() {\n return \"Available Appointment \\nDate: \" + date + \" \\nTime: \" + time;\n }", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "public List<Appointment> getAppointments(){\n return appointments;\n }", "public static Map appointments(String _response) throws JSONException {\r\n JSONObject obj = new JSONObject(_response);\r\n JSONArray info = obj.getJSONArray(\"appointments\");\r\n /*String apptData = null;\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n apptData = appointment.getString(\"id\");\r\n System.out.println(\"Appointment Id: \" + apptData);\r\n apptData = appointment.getString(\"title\");\r\n System.out.println(\"title: \" + apptData);\r\n apptData = appointment.getString(\"created\");\r\n System.out.println(\"created: \" + apptData);\r\n apptData = appointment.getString(\"start\");\r\n System.out.println(\"start: \" + apptData);\r\n apptData = appointment.getString(\"end\");\r\n System.out.println(\"end: \" + apptData);\r\n apptData = appointment.getString(\"note\");\r\n System.out.println(\"note: \" + apptData);\r\n System.out.println(\" \");\r\n\r\n }*/\r\n\r\n Map<String, String> apptData = new HashMap<>();\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n String id = appointment.getString(\"id\");\r\n apptData.put(\"AppointmetnId\", id);\r\n String title = appointment.getString(\"title\");\r\n apptData.put(\"title\", title);\r\n String created = appointment.getString(\"created\");\r\n apptData.put(\"created\", created);\r\n String start = appointment.getString(\"start\");\r\n apptData.put(\"start\", start);\r\n String end = appointment.getString(\"end\");\r\n apptData.put(\"end\", end);\r\n String note = appointment.getString(\"note\");\r\n apptData.put(\"note\", note);\r\n\r\n }\r\n return apptData;\r\n\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession(true);\n String name = session.getAttribute(\"username\").toString();\n Double[] data = new Double[12];\n TransDetail transdetail = new TransDetail();\n YearMonth yearMonth;\n LocalDate firstOfMonth;\n LocalDate lastOfMonth;\n Calendar c = GregorianCalendar.getInstance();\n \n for (int i = 0; i < 12; i++) {\n data[i] = 0.0;\n yearMonth = YearMonth.of(c.get(Calendar.YEAR), i+1); \n firstOfMonth = yearMonth.atDay(1);\n lastOfMonth = yearMonth.atEndOfMonth();\n List transdetailList = transSessionBean.searchWeeklyWithDate(name, firstOfMonth.toString(), lastOfMonth.toString()); \n Iterator iteratorMonthList = transdetailList.iterator();\n while (iteratorMonthList.hasNext()) {\n TransDetail loopMonthTransDetail = (TransDetail) iteratorMonthList.next(); \n data[i] = data[i] + Double.parseDouble(loopMonthTransDetail.getTotal());\n \n }\n System.out.print(\"month: \" + i + \" \" + data[i]);\n }\n \n System.out.print(\"tostring : \" + Arrays.toString(data));\n response.getWriter().write(Arrays.toString(data));\n \n }", "public attendance() {\n initComponents();\n setDate();\n controller = new AttendanceController();\n getAllEmployees();\n generateAttendanceId();\n aIdtxt.setVisible(false);\n }", "@RequestMapping(value = \"/EventJour\")\n\t\tpublic List<Events> getEventsParDate() {\n\t\t\treturn eventDAO.getEventsParDate();\n\t\t}", "@Override\n public List getAttendanceDetails(int compCode, int year ) throws ApplicationException {\n long begin = System.nanoTime();\n HrAttendanceDetailsDAO hrAttendanceDao = new HrAttendanceDetailsDAO(em);\n List attendanceList = new ArrayList();\n try {\n attendanceList = hrAttendanceDao.getAttenDataByComCodeAndCurrentYr(compCode, year);\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method getAttendanceDetails()\", e);\n throw new ApplicationException(e.getMessage());\n// throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n// \"System exception has occured\"));\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for getAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return attendanceList;\n }", "public ArrayList<String> getAlllectureAttendance() {\n\t\tArrayList<String> attendance_lecture = new ArrayList<String>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT DISTINCT \" + KEY_LECTURE_NUM_ATTENDANCE\n\t\t\t\t+ \" FROM \" + TABLE_TEACHER_ATTENDANCE;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {// Adding contact to list\n\t\t\tattendance_lecture.add(cursor.getString(cursor\n\t\t\t\t\t.getColumnIndex(KEY_LECTURE_NUM_ATTENDANCE)));\n\t\t\tLog.d(\"lecture_num\", cursor.getString(cursor\n\t\t\t\t\t.getColumnIndex(KEY_LECTURE_NUM_ATTENDANCE)));\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn attendance_lecture;\n\t}", "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}", "@Override\r\n\tpublic Map<String, Double> getFilmAttendance() {\n\t\tList<Film> films = filmDao.getAllFilms();\r\n\t\tMap<String, Double> result = new HashMap<String, Double>();\r\n\t\tfor(Film film:films){\r\n\t\t\tif(film.getTicketSold()==0){\r\n\t\t\t\tresult.put(film.getName(), (double) 0);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tresult.put(film.getName(), (double) (Math.round((double)film.getTicketSold()/film.getTicketPrepared()*1000)/(double)10));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}", "@RequestMapping(value = \"/getreturned\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\ttry{\n\t\t\tEmployee employee=(Employee) userService.get(Integer.parseInt(httpSession.getAttribute(\"user\").toString()));\n\t\t\tBranchOffice branch=(employee.getBranchOffice());\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(branch, date));\n\t\t}catch(Exception e){\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\t\n\t\t}\n\t}", "@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}", "@Override\n protected String doInBackground(Void... params) {\n\n final String[] columns = new String[]{\"emp_id\", \"Adate\",\n \"attendance\", \"absent_type\", \"lat\", \"lon\", \"savedServer\", \"month\",\n \"holiday_desc\", \"year\"};\n\n if (!cd.isConnectingToInternet()) {\n\n Flag = \"3\";\n // stop executing code by return\n\n } else {\n\n\n Flag = \"1\";\n\n try {\n\n Calendar calendar2 = Calendar.getInstance();\n SimpleDateFormat mdformat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String strDate = mdformat.format(calendar2.getTime());\n String firlogin;\n if(firstlogin){\n firlogin = \"No\";\n }else{\n firlogin = \"\";\n }\n\n soap_result_attendance = service.GetAttendanceList(username,strDate,firlogin);\n\n if (soap_result_attendance != null) {\n log = \"soap not null\";\n presentList = new ArrayList<AttendanceModel>();\n for (int i = 0; i < soap_result_attendance.getPropertyCount(); i++) {\n\n SoapObject soapObject = (SoapObject) soap_result_attendance.getProperty(i);\n\n if (soapObject.getProperty(\"status\") != null) {\n log = log + \"-status not null\";\n attstatus = cd.getNonNullValues(soapObject.getProperty(\"status\").toString());\n\n if (attstatus.equalsIgnoreCase(\"TRUE\")) {\n log = log + \"-attstatus true\";\n ADate = cd.getNonNullValues(soapObject.getProperty(\"ADate\").toString());\n\n AbsentType = cd.getNonNullValues(soapObject.getProperty(\"AbsentType\").toString());\n\n Aid = cd.getNonNullValues(soapObject.getProperty(\"ID\").toString());\n\n spe.putString(\"AttendAid\", Aid);\n spe.commit();\n\n AttendanceValue = cd.getNonNullValues(soapObject.getProperty(\"AttendanceValue\").toString());\n\n\n attendanceModel = new AttendanceModel();\n attendanceModel.setADate(ADate);\n attendanceModel.setAttendanceValue(AttendanceValue);\n attendanceModel.setAbsentType(AbsentType);\n attendanceModel.setAid(Aid);\n\n presentList.add(attendanceModel);\n log = log + \"-list add\";\n }\n }\n\n }\n\n Log.v(\"\", \"soap_result_attendance=\" + attstatus);\n\n if (attstatus.equalsIgnoreCase(\"TRUE\")) {\n ErroFlag = \"1\";\n log = log + \"-attstatus true 1\";\n for (int j = 0; j < presentList.size(); j++) {\n attendanceModel = presentList.get(j);\n\n SimpleDateFormat df = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss a\", Locale.US);\n Date date = df.parse(attendanceModel.getADate());\n\n SimpleDateFormat form = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US);\n savedate = form.format(date);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.US);\n String adate = sdf.format(date.getTime());\n\n String sld[] = adate.split(\" \");\n final String sld1 = sld[0];\n\n String ddd[] = adate.split(\"-\");\n final String year = ddd[0];\n log = log + \"-attstatus true 2\";\n String attendmonth1 = getmonthNo1(ddd[1]);\n log = log + \"-\" + attendmonth1;\n db.open();\n Cursor c = db.getuniquedataAttendance(username, adate);\n// String sql = \"select * from attendance where emp_id = \" + \"'\" + username + \"'\" + \" AND Adate like \" + \"'%\" + adate + \"%'\";\n// log = log + \"-\" + sql;\n//\n// Cursor c = db.rawQuery(sql);\n// log = log + \"-getuniquedataAttendance true\";\n int count = c.getCount();\n Log.v(\"\", \"\" + count);\n db.close();\n if (count > 0) {\n log = log + \"-getuniquedataAttendance 0\";\n db.open();\n db.update(adate,\n new String[]{\n username,\n savedate,\n attendanceModel.getAttendanceValue(),\n attendanceModel.getAbsentType(),\n \"0.0\",\n \"0.0\",\n \"1\",\n attendmonth1,\n \"\",\n year},\n new String[]{\n \"emp_id\", \"Adate\",\n \"attendance\", \"absent_type\",\n \"lat\", \"lon\", \"savedServer\", \"month\",\n \"holiday_desc\", \"year\"},\n \"attendance\", \"Adate\");\n\n db.close();\n\n } else {\n db.open();\n\n values = new String[]{username,\n savedate,\n attendanceModel.getAttendanceValue(),\n attendanceModel.getAbsentType(),\n \"0.0\",\n \"0.0\",\n \"1\",\n attendmonth1,\n \"\",\n year};\n\n db.insert(values, columns, \"attendance\");\n log = log + \"-insert true\";\n db.close();\n\n }\n\n }\n\n } else if (attstatus.equalsIgnoreCase(\"FAIL\")) {\n ErroFlag = \"1\";\n log = log + \"-status fail\";\n }\n } else {\n ErroFlag = \"0\";\n //String errors = \"Soap in giving null while 'Attendance' and 'checkSyncFlag = 2' in data Sync\";\n //we.writeToSD(errors.toString());\n final Calendar calendar1 = Calendar\n .getInstance();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\n \"MM/dd/yyyy HH:mm:ss\", Locale.ENGLISH);\n String Createddate = formatter1.format(calendar1\n .getTime());\n log = log + \"-attendance null\";\n n = Thread.currentThread().getStackTrace()[2].getLineNumber();\n db.insertSyncLog(\"Internet Connection Lost, Soap in giving null while 'GetSaveAttendace'\", String.valueOf(n), \"SaveAttendance()\", Createddate, Createddate, sp.getString(\"username\", \"\"), \"Transaction Upload\", \"Fail\");\n\n }\n\n\n } catch (Exception e) {\n ErroFlag = \"2\";\n Erro_function = \"Attendance\";\n e.printStackTrace();\n Error = e.toString();\n log = log + \"-exception null\";\n final Calendar calendar1 = Calendar\n .getInstance();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\n \"MM/dd/yyyy HH:mm:ss\", Locale.ENGLISH);\n String Createddate = formatter1.format(calendar1\n .getTime());\n\n n = Thread.currentThread().getStackTrace()[2].getLineNumber();\n db.insertSyncLog(Error, String.valueOf(n), \"GetSaveAttendance()\", Createddate, Createddate, sp.getString(\"username\", \"\"), \"Transaction Upload\", \"Fail\");\n\n\n }\n //}\n }\n\n return ErroFlag;\n }", "private AppointmentCashRequest appointmentCashRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppointmentCashRequest appointmentCashRequest = new AppointmentCashRequest();\n appointmentCashRequest.set_id(appoinmentid);\n appointmentCashRequest.setAmount(txt_serviceamout.getText().toString());\n Log.w(TAG,\"appointmentCashRequest\"+ \"--->\" + new Gson().toJson(appointmentCashRequest));\n return appointmentCashRequest;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n return eventStrings;\n }", "@Override\r\n\tpublic List<Cita> getAppointmentList() {\r\n\r\n\t\t// find all users\r\n\t\tList<User> users = (List<User>) userService.findAll();\r\n\t\t// create a new arrayList of appointments\r\n\t\tList<Cita> appointments = new ArrayList<>();\r\n\r\n\t\t// iterate over the list of all the users\r\n\t\tfor (Iterator<User> user = users.iterator(); user.hasNext();) {\r\n\t\t\t// get the user from the forEach\r\n\t\t\tUser getUser = user.next();\r\n\r\n\t\t\t// iterate over the AppointmentList\r\n\t\t\tfor (Cita item : getUser.getCitas()) {\r\n\r\n\t\t\t\t// check if the class is not empty\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tappointments.add(item);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn appointments;\r\n\t}", "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "@ResponseBody\r\n/* 26: */ @RequestMapping(value={\"/Select_userinfo_days_time\"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})\r\n/* 27: */ public Map<String, Object> select_userinfo_days_time(HttpServletRequest req, HttpServletResponse resp)\r\n/* 28: */ {\r\n/* 29: 40 */ Map<String, Object> map = new HashMap();\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32: 43 */ req.setCharacterEncoding(\"utf-8\");\r\n/* 33: 44 */ resp.setCharacterEncoding(\"utf-8\");\r\n/* 34: 45 */ String username = req.getParameter(\"username\");\r\n/* 35: 46 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 36: 47 */ String qiandaotime = df.format(new Date());\r\n/* 37: 48 */ Map<String, Object> usermap = new HashMap();\r\n/* 38: 49 */ usermap.put(\"Qiandaotime\", qiandaotime);\r\n/* 39: 50 */ usermap.put(\"Username\", username);\r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: 54 */ List<Map<String, Object>> currentDateList = this.userService.selectCurrentDateList(usermap);\r\n/* 44: */ \r\n/* 45: */ \r\n/* 46: 57 */ List<Map<String, Object>> totalDateList = this.userService.selectUserScoreOrDayByName(usermap);\r\n/* 47: 58 */ List<Map<String, Object>> signTimeLiST = this.userService.selectUserQiandaotimeByName(usermap);\r\n/* 48: 59 */ Object signTime = ((Map)signTimeLiST.get(0)).get(\"qiandaotime\");\r\n/* 49: 60 */ int days = 0;\r\n/* 50: 61 */ if ((signTime != null) && (!signTime.toString().equals(\"\")))\r\n/* 51: */ {\r\n/* 52: 63 */ List<Map<String, Object>> SignLiST = this.userService.decideContinuous(usermap);\r\n/* 53: 64 */ days = Integer.parseInt(((Map)SignLiST.get(0)).get(\"num\").toString());\r\n/* 54: */ }\r\n/* 55: 67 */ if ((days > 1) || (signTime == null) || (signTime.equals(\"\")))\r\n/* 56: */ {\r\n/* 57: 68 */ days = 0;\r\n/* 58: 69 */ Map<String, Object> dayMap = new HashMap();\r\n/* 59: 70 */ dayMap.put(\"Days\", days + \"\");\r\n/* 60: 71 */ dayMap.put(\"Username\", username);\r\n/* 61: 72 */ int i = this.userService.updateUserinfoDays(dayMap);\r\n/* 62: */ }\r\n/* 63: */ else\r\n/* 64: */ {\r\n/* 65: 74 */ int sumdays = Integer.parseInt(((Map)totalDateList.get(0)).get(\"days\")\r\n/* 66: 75 */ .toString());\r\n/* 67: 76 */ if ((sumdays % 7 == 0) && (sumdays != 0)) {\r\n/* 68: 77 */ days = 7;\r\n/* 69: */ } else {\r\n/* 70: 79 */ days = sumdays % 7;\r\n/* 71: */ }\r\n/* 72: */ }\r\n/* 73: 82 */ if ((null != currentDateList) && (0 < currentDateList.size()))\r\n/* 74: */ {\r\n/* 75: 83 */ map.put(\"data\", \"1\");\r\n/* 76: 84 */ map.put(\"days\", days + \"\");\r\n/* 77: 85 */ map.put(\"score\", ((Map)currentDateList.get(0)).get(\"score\").toString());\r\n/* 78: */ }\r\n/* 79: 88 */ else if ((null != totalDateList) && (0 < totalDateList.size()))\r\n/* 80: */ {\r\n/* 81: 89 */ map.put(\"data\", \"0\");\r\n/* 82: 90 */ map.put(\"days\", days + \"\");\r\n/* 83: 91 */ map.put(\"score\", ((Map)totalDateList.get(0)).get(\"score\").toString());\r\n/* 84: */ }\r\n/* 85: 94 */ return map;\r\n/* 86: */ }\r\n/* 87: */ catch (Exception ex)\r\n/* 88: */ {\r\n/* 89: 97 */ ex.printStackTrace();\r\n/* 90: 98 */ map.put(\"error\", ex.getMessage());\r\n/* 91: */ }\r\n/* 92: 99 */ return map;\r\n/* 93: */ }", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "public void updateAttendance(Date date);", "@GetMapping(\"/day-times\")\n @Timed\n public List<DayTime> getAllDayTimes() {\n log.debug(\"REST request to get all DayTimes\");\n List<DayTime> dayTimes = dayTimeRepository.findAll();\n return dayTimes;\n }", "AttendanceDTO get(long id);", "private JSONArray findAll() throws ParseException, java.text.ParseException {\n\t\treturn (JSONArray) new JSONParser()\n\t\t\t\t.parse(new Gson().toJson(bookingDateRepository.findCampsiteVacancy()));\n\t}", "@Override\n public int getItemCount() {\n return attendancearrayList.size();\n }", "private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}", "@RequestMapping(value = \"/times\", method = RequestMethod.GET)\r\n\t\t@ResponseBody\r\n\t\tpublic ResponseEntity<List<Time>> obterTime() {\r\n\t\t\t\r\n\t\t\tList<Time> Times; // Classe List -> define um array de objetos da classe Time\r\n\t\t\t\r\n\t\t\tTimes = timeRepository.findAll();\r\n\t\t\tif (Times.isEmpty())\r\n\t\t\t\treturn new ResponseEntity<List<Time>>(Times, HttpStatus.NO_CONTENT);\r\n\t\t\t\r\n\t\t\treturn new ResponseEntity<List<Time>>(Times, HttpStatus.OK);\r\n\t\t\t\r\n\t\t}", "static void loadAttendanceData(String year) {\r\n\t\tJSONArray jsona = null;\r\n\t\ttry {\r\n\t\t\tString data = Engine.db.getCollection(\"Students\").find(eq(\"sid\", Personal.tsid.getText())).first().toJson();\r\n\t\t\tjsona = new JSONObject(data).getJSONArray(year.toLowerCase());\r\n\t\t} catch (JSONException e) {\r\n\t\t}\r\n\t\tIterator<?> it = jsona.iterator();\r\n\t\tatsem1.getItems().clear();\r\n\t\tatsem2.getItems().clear();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tJSONObject json = (JSONObject) it.next();\r\n\t\t\tString name = json.getString(\"name\");\r\n\t\t\tint at = json.getInt(\"attended\");\r\n\t\t\tint att = json.getInt(\"attendedTotal\");\r\n\t\t\tint sem = json.getInt(\"sem\");\r\n\r\n\t\t\tPlatform.runLater(() -> {\r\n\t\t\t\tif (sem % 2 == 1) {\r\n\t\t\t\t\tatsem1.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatrbsem1.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t\tatsem1.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tatsem2.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatsem2.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t\tatrbsem2.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t// Get connected\r\n\t\t\t\r\n\t\tConnection myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/classicmodels\", \"root\", \"\"); \r\n\t\t\r\n\t\t// create statement\r\n\t\t\r\n\t\tStatement myStmtCust = myConn.createStatement();\r\n\t\t\r\n\t\tStatement myStmtEmp = myConn.createStatement();\r\n\t\t\r\n\t\t// Execute SQL Query\r\n\t\t\r\n\t\tResultSet myResCus = myStmtCust.executeQuery(\"SELECT * FROM customers\");\r\n\t\t\r\n\t\t\r\n\t\tResultSet myResEmp = myStmtEmp.executeQuery(\"SELECT * FROM employees\");\r\n\t\t\r\n\t\tResultSetMetaData rsmd = myResCus.getMetaData();\r\n\t\t\r\n\t\tint numberOfColumns = rsmd.getColumnCount();\r\n\t\t\r\n\t //System.out.println(numberOfColumns);\r\n\t \r\n\t\tList rowValues = new ArrayList();\r\n\r\n\t\t\r\n\t\twhile (myResCus.next()) {\r\n\t\t\trowValues.add(myResCus.getString(\"phone\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(rowValues);\r\n\t\t\r\n\t\tSystem.out.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\r\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss:SS\");\r\n\t\tCalendar calobj = Calendar.getInstance();\r\n\t\tSystem.out.println(df.format(calobj.getTime()));\r\n\t\t\r\n\t\t\r\n\t\tArrayList<String> mylist = new ArrayList<String> ();\r\n\t\t mylist.add(\"abc\");\r\n\t\t mylist.add(\"cfd\");\r\n\t\t mylist.add(\"ert\");\r\n\t\t mylist.add(\"fg\");\r\n\t\t mylist.add(\"ujk\");\r\n\t\t //String json = new Gson().toJson(mylist);\r\n\t\t \r\n\t\t \r\n\t\t Gson prettyGson = new GsonBuilder().setPrettyPrinting().create();\r\n\t\t \r\n\t\t Gson gson = new Gson();\r\n\t\t String jsonArray = prettyGson.toJson(rowValues);\r\n\t\t \r\n\t\t System.out.println(jsonArray);\r\n\t\t \r\n\t\t //return jsonArray;\r\n\t\t \r\n\t\t\tCalendar calobj1 = Calendar.getInstance();\r\n\t\t\tSystem.out.println(df.format(calobj1.getTime()));\r\n\t\t \r\n\t\t System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\r\n\t\tString phoneJson = new Gson().toJson(rowValues);\r\n\t\t\r\n\t\tSystem.out.println(phoneJson);\r\n\t\t\r\n\t\t// Creating ArrayList \r\n ArrayList<String> list \r\n = new ArrayList<String>(); \r\n \r\n // Adding object in ArrayList \r\n list.add(\"A\"); \r\n list.add(\"B\"); \r\n list.add(\"C\"); \r\n list.add(\"D\"); \r\n \r\n // Invoking ArrayList object \r\n System.out.println(\"ArrayList: \" + list); \r\n \r\n // Creating HashMap \r\n HashMap<Integer, String> hm \r\n = new HashMap<Integer, String>(); \r\n \r\n // Adding object in HashMap \r\n hm.put(1, \"A\"); \r\n hm.put(2, \"B\"); \r\n hm.put(3, \"C\"); \r\n hm.put(4, \"D\"); \r\n \r\n // Invoking HashMap object \r\n // It might or might not display elements \r\n // in the insertion order \r\n System.out.print(\"HasMap: \" + hm); \r\n\t\t\r\n\t\t\r\n\t\t\r\n//\t\twhile (myResEmp.next()) {\r\n//\t\t\tSystem.out.println(myResEmp.getString(\"email\"));\r\n//\t\t\t\r\n//\t\t}\r\n\t\t\r\n\r\n\t\tmyConn.close();\r\n\t\t\r\n\t\t}\r\n\t\tcatch\t(Exception exc){\r\n\t\t\texc.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@RequestMapping(method = RequestMethod.GET)\n String read(Model model){\n Date now = new Date();\n List<Program> programList = programTableService.readOneDayByNow(now.getTime());\n model.addAttribute(\"programList\", programList);\n return \"programs/list\";\n }", "@Override\n\tpublic ArrayList<Map<String, String>> get() {\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate current = new Date();\n\t\tString date = format.format(current);\t\t\t\t\n\t\t// 유효기간이 지난 데이터는 리턴하지 않는다.\n\t\tArrayList<Map<String, String>> list = new ArrayList<Map<String, String>>();\n\t\tString sql = \"SELECT * FROM \" + EventDBHelper.TABLE + \" WHERE \" + ENABLEDATE + \">=\" + date + \" ORDER BY \" + ENABLEDATE + \" ASC\";\n\t\tmCursor = mDB.rawQuery(sql, null);\n\n\t\tif (mCursor.moveToFirst()) {\n\t\t\twhile (!mCursor.isAfterLast()) {\n\t\t\t\tMap<String, String> map = new HashMap<String, String>();\n\t\t\t\tmap.put(ESTID, mCursor.getString(mCursor.getColumnIndex(ESTID)));\n\t\t\t\tmap.put(EVENTID, mCursor.getString(mCursor.getColumnIndex(EVENTID)));\n\t\t\t\tmap.put(ENABLEDATE,\tmCursor.getString(mCursor.getColumnIndex(ENABLEDATE)));\n\t\t\t\tmap.put(DESC, mCursor.getString(mCursor.getColumnIndex(DESC)));\n\t\t\t\tlist.add(map);\n\t\t\t\tmCursor.moveToNext();\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public String[] getEventsList(){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<String> list = new Vector<String>();\n String[] result = null;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-YY\");\n try{\n //obtain the database connection by calling getConn()\n con = getConn();\n //build sql\n String sql = \"select name,to_date(start_time,'DD-MM-YY'),to_date(end_time,'DD-MM-YY') from event\" ;\n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql \n st = con.prepareCall(sql);\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n list.add(sdf.format(rs.getDate(2)) + \",\" + sdf.format(rs.getDate(3)) + \",\" + rs.getString(\"name\"));\n \n }\n \n result = new String[list.size()];\n for (int i = 0 ; i< list.size() ; i++){\n result[i] = list.get(i);\n \n }\n }\n catch (SQLException ex){\n ex.printStackTrace();\n }\n \n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n \n return result;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //response.setContentType(\"text/html;charset=UTF-8\");\n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"UTF-8\");\n Date today = new java.util.Date();\n if (today.getDay() == 0 || today.getDay() == 7){\n //its the weekend everything is closed\n }\n Date currentTime = new Time(today.getTime()); \n Session session = HibernateUtil.getSessionFactory().openSession();\n Query q = session.createQuery(\"from Truck t where t.openingTime <=:time and t.closingTime >:time\");\n q.setParameter(\"time\", currentTime);\n List<Truck> results = q.list();\n //List<Truck> results = Truck.getAllTrucks();\n JsonArray jsonArray = new JsonArray();\n for (Truck t: results) {\n JsonObject jsonObject = new JsonObject();\n jsonObject.addProperty(\"name\", t.getTruckName());\n jsonObject.addProperty(\"lat\", t.getLatitude());\n jsonObject.addProperty(\"lng\", t.getLongitude());\n jsonObject.addProperty(\"id\", t.getId()); \n jsonArray.add(jsonObject);\n }\n try (PrintWriter out = response.getWriter()) {\n out.print(jsonArray); \n }\n }", "@Override\n\tpublic List<AttendanceState> findAttendanceState() {\n\t\treturn attendanceMapper.findAttendanceState();\n\t}", "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}", "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}", "public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}", "@GetMapping(\"/sys-appointments\")\n @Timed\n public List<SysAppointment> getAllSysAppointments() {\n log.debug(\"REST request to get all SysAppointments\");\n return sysAppointmentService.findAll();\n }", "public Date getEnrollment_date() {\n return enrollment_date;\n }", "public String outputAppointments() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Reminders:\\n\");\n if (reminders.size() < 1) {\n sb.append(\"No reminders found.\\n\");\n } else {\n Iterator it = reminders.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": for \" + pair.getValue() + \" days\\n\");\n }\n }\n sb.append(\"\\nFollow-ups:\\n\");\n if (followup.size() < 1) {\n sb.append(\"No follow-ups found.\\n\");\n } else {\n Iterator it = followup.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": in \" + pair.getValue() + \" days\\n\");\n }\n }\n return sb.toString();\n }", "@Override\n @Transactional(readOnly = true)\n public Page<EventAttendanceDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all EventAttendances\");\n return eventAttendanceRepository.findAll(pageable)\n .map(eventAttendanceMapper::toDto);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Create object of CalendarInteraction class\n CalendarInteraction mCalHelper = new CalendarInteraction(getActivity());\n appointmentGetter = new AppointmentGetter();\n\n\n // Retrieve data from the calender via the CalendarHelper Class\n Cursor data = mCalHelper.getData();\n\n // Create an arraylist of AppointModels\n ArrayList<AppointModel> appointmentList = new ArrayList<>();\n\n if (data != null){\n while (data.moveToNext())\n {\n appointModel = appointmentGetter.getData(data);\n // Add the appointment model to the arraylist\n appointmentList.add(appointModel);\n }\n\n data.close();\n\n }\n\n\n // Close off the cursor\n\n // Maak de adapter hier\n AppointModel appointModel_data[] = new AppointModel[appointmentList.size()];\n\n // Create the adapter\n appointAdapter = new AppointAdapter(listener,\n R.layout.appoint_list_layout, appointModel_data);\n\n // Keep track of amount of models\n\n // Create an array of objects filled with the models from the AppointModel\n // arraylist. This array will then be used in conjunction with the appointAdapter\n // to create the list of appointments\n\n\n\n for (AppointModel a : appointmentList) {\n appointModel_data[count] = new AppointModel(\n a.getEventID(),\n a.getTime(),\n a.getDate(),\n a.getAppointName(),\n a.getWardName(),\n a.getDoctorName()\n );\n\n count += 1;\n }\n\n\n\n\n }", "Date getDataIns();", "public ArrayList getDayArray() {\r\n return dayArray; \r\n }", "@Override\r\n\t@RequestMapping(\"/list\")\r\n\tpublic ResultData getMeetingDetails(MeetingDetail meetingDetail) {\n\t\treturn new ResultData(dao.getMeetingDetails(meetingDetail),\r\n\t\t\t\tdao.getCount(meetingDetail), meetingDetail.getPageSize(), meetingDetail.getPageNo());\r\n\t}", "@RequestMapping(value = \"get_history_by_users\",headers=\"Accept=*/*\", method={RequestMethod.GET},produces=\"application/json\")\n\t@ResponseBody\n\t@org.codehaus.jackson.map.annotate.JsonView(HistoryPair.class)\n\tpublic HistoryPair[] getHistoryByUser(@RequestParam(\"entity\") String username){\n\t\t//:TODO your implementation\n\t\tHistoryPair hp = new HistoryPair(\"aa\", new Date());\n\t\tSystem.out.println(\"ByUser \"+hp);\n\t\treturn new HistoryPair[]{hp};\n\t}", "public List<String> recordedDateList();", "@GetMapping(\"/appointments/date/{id}/{date}\")\n public List<Appointment> getAppointmentByConsultantAndDate(@PathVariable(\"id\")Long id,@PathVariable(\"date\") @DateTimeFormat(iso= DateTimeFormat.ISO.DATE) LocalDate date) {\n return (appointmentService.findAppsByConsultantAndDate(id,date));\n }", "@RequestMapping(value = \"/getreturnedadmin\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedAdminToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\n\t}", "@Path(\"allAppliedLeave\")\r\n\t@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ArrayList<AppliedLeaveDetails> getAllAppliedLeaveDetails() throws IOException {\r\n\t\tArrayList<AppliedLeaveDetails> appliedleave = new ArrayList<AppliedLeaveDetails>();\r\n\r\n\t\tString jsonArray = ApplicationProperties.getInstance().getApplicationProperties().getProperty(\"appliedLeave\");\r\n\t\tSystem.out.println(jsonArray);\r\n\t\tType type = TypeToken.getParameterized(ArrayList.class, AppliedLeaveDetails.class).getType();\r\n\t\tappliedleave = new Gson().fromJson(jsonArray, type);\r\n\r\n\t\treturn appliedleave;\r\n\t}", "public ArrayList<Appointment> getAllAppointments() {\n ArrayList<Appointment> array_list = new ArrayList<Appointment>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"SELECT * FROM bus_table \", null );\n\n res.moveToFirst();\n\n while(res.isAfterLast() == false){\n Integer id = res.getInt(res.getColumnIndex(\"ID\"));\n String Busfrom = res.getString(res.getColumnIndex(\"BUSFROM\"));\n String Busto = res.getString(res.getColumnIndex(\"BUSTO\"));\n String BusTime = res.getString(res.getColumnIndex(\"BUSTIME\"));\n String BusPrice = res.getString(res.getColumnIndex(\"BUSTICKET\"));\n String BusSeats = res.getString(res.getColumnIndex(\"BUSSEATS\"));\n Appointment appointment = new Appointment(id, Busfrom, Busto, BusTime, BusPrice,BusSeats);\n array_list.add(appointment);\n res.moveToNext();\n }\n return array_list;\n }", "public String getOneDayStatistic(String unitId, String groupId,\n\t\t\tString deptId, Date queryDate) {\n\t\tMap<String,String> allAttendance = new HashMap<String,String>();\n\t\tList<OfficeAttendanceGroup> groupList = officeAttendanceGroupService.listOfficeAttendanceGroupByUnitId(unitId);\n\t\tString[] groupIds = new String[groupList.size()];\n\t\tfor(int m=0;m<groupList.size();m++){\n\t\t\tgroupIds[m] = groupList.get(m).getId();\n\t\t}\n\t\tMap<String,List<OfficeAttendanceGroupUser>> groupUserMap = officeAttendanceGroupUserService.getOfficeAttendanceGroupUserMap(groupIds);\n\t\tList<OfficeAttendanceExcludeUser> excludeUsers = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n\t\tSet<String> excludeSet = new HashSet<String>();\n\t\tfor(OfficeAttendanceExcludeUser exclude:excludeUsers){\n\t\t\texcludeSet.add(exclude.getUserId());\n\t\t}\n\t\tif(StringUtils.isNotEmpty(groupId)){\n\t\t\tList<OfficeAttendanceGroupUser> groupUserList = groupUserMap.get(groupId);\n\t\t\tallAttendance = covertOfficeAttendanceInfoMap(groupUserList , excludeUsers);\n\t\t\t\n\t\t}else if(StringUtils.isNotEmpty(deptId)){\n\t\t\tList<User> deptUser = userService.getUsersByDeptId(deptId);\n\t\t\tallAttendance = covertUserMap(deptUser,excludeUsers);\n\t\t}else{\n\t\t\tList<User> unitUser = userService.getUserListByUnitId(unitId, null, User.TEACHER_LOGIN, null);\n\t\t\tallAttendance = covertUserMap(unitUser ,excludeUsers);\n\t\t}\n\t\tSet<String> userSet = allAttendance.keySet();\n\t\tint i =0;\n\t\tString[] userIds = new String[userSet.size()];\n\t\tfor(String s:userSet){\n\t\t\tuserIds[i++] = s;\n\t\t}\n\t\t\n\t\tJSONObject json = new JSONObject();\n//\t\tJSONArray jsonArr = new JSONArray();\n//\t\tJSONObject json2 = null;\n\t\tString[] attendancename = new String[11];\n\t\tInteger[] attendanceNum = new Integer[11];\n//\t\t取该单位下 迟到早退List\n\t\tList<OfficeAttendanceInfo> later = listOfficeAttendanceInfoByDateAndState(unitId, null,null,AttendanceConstants.ATTENDANCE_CLOCK_STATE_1, queryDate);\n\t\tList<OfficeAttendanceInfo> leaveEarly = listOfficeAttendanceInfoByDateAndState(unitId,null,null, AttendanceConstants.ATTENDANCE_CLOCK_STATE_2, queryDate);\n\n\t\tint laterSum = 0;\n\t\tint leaveEarlySum =0;\n\t\tlaterSum = sumLeaveOrLater(allAttendance,later);\n\t\tleaveEarlySum = sumLeaveOrLater(allAttendance,leaveEarly);\n\n\t\tattendancename[0] = \"迟到人数\";\n\t\tattendanceNum[0] = laterSum;\n\t\t\n\n\t\tattendancename[1] = \"早退人数\";\n\t\tattendanceNum[1] = leaveEarlySum;\n\t\tMap<String,String> costomAttendance = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_DEFAULT, queryDate, unitId,null,null);\n\t\tMap<String,String> outWork = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_3, queryDate, unitId,null,null);\n\t\t\n\t\n\t\tint customSum=0;\n\t\tint outWorkSum=0;\n\t\tcustomSum =sumPeople(allAttendance,costomAttendance);\n\t\toutWorkSum =sumPeople(allAttendance,outWork);\n\n\t\tattendancename[2] = \"正常考勤人数\";\n\t\tattendanceNum[2] = customSum;\n\n\t\tattendancename[3] = \"外勤考勤人数\";\n\t\tattendanceNum[3] = outWorkSum;\n\t\n//\t\tList<Teacher> teacherList = teacherService.getTeachers(unitId);\n//\t\tList<OfficeAttendanceExcludeUser> notAddAttendance = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n//\t\tint sumNotAddAttencedance = sumNotAttendance(allAttendance,notAddAttendance,flag);\n//\t\t\n//\t\tint attendanceNum = allAttendance.size() - sumNotAddAttencedance;\n\n\t\tattendancename[5] = \"考勤人数\";\n\t\tattendanceNum[5] = allAttendance.size();\n\t\n\t\tSet<String> applySet = new HashSet<String>();\n\t\tList<OfficeTeacherLeave> leaveList = officeTeacherLeaveService.getQueryList(unitId, userIds, queryDate, queryDate, null, true);\n\t\tint leaveSum =0;\n\t\tfor(OfficeTeacherLeave l:leaveList){\n\t\t\tif(userSet.contains(l.getApplyUserId())){\n\t\t\t\tapplySet.add(l.getApplyUserId());\n\t\t\t\tleaveSum++;\n\t\t\t}\n\t\t}\n\n\t\tattendancename[7] = \"请假人数\";\n\t\t\n\t\tattendanceNum[7] = leaveSum;\n\t\tList<OfficeGoOut> gooutList = officeGoOutService.getListByStarttimeAndEndtime(queryDate, DateUtils.addDay(queryDate, 1), userIds);\n\t\tint goOutSum=0;\n\t\tfor(OfficeGoOut g:gooutList){\n\t\t\tif(userSet.contains(g.getApplyUserId())){\n\t\t\t\tapplySet.add(g.getApplyUserId());\n\t\t\t\tgoOutSum++;\n\t\t\t}\n\t\t}\n\t\tattendancename[8] = \"外出人数\";\n\t\tattendanceNum[8] = goOutSum;\n\t\tList<OfficeBusinessTrip> tripList = officeBusinessTripService.getListByStarttimeAndEndtime(queryDate, queryDate, userIds);\n\t\t\n\t\tMap<String,Set<String>> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, DateUtils.addDay(queryDate, 1));\n\t\tint tripSum = 0;\n\t\tfor(OfficeBusinessTrip t:tripList){\n\t\t\tif(userSet.contains(t.getApplyUserId())){\n\t\t\t\tapplySet.add(t.getApplyUserId());\n\t\t\t\ttripSum++;\n\t\t\t}\n\t\t}\n\n//\t\tMap<String,Integer> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, queryDate);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tint jtGoOutNum = jtGoOutMap.get(format.format(queryDate));\n\t\tattendancename[9] = \"出差人数\";\n\t\tattendanceNum[9] = tripSum;\n\t\tSet<String> jtSet = jtGoOutMap.get(format.format(queryDate));\n\t\tif(jtSet == null) jtSet = new HashSet<String>();\n\t\tattendancename[10] = \"集体外出人数\";\n\t\tattendanceNum[10] = jtSet.size();\n\t\tapplySet.addAll(jtSet);\n\t\t\n\t\tMap<String,String> missCard = getMissingCard(queryDate, unitId, AttendanceConstants.ATTENDANCE_CLOCK_STATE_98 ,null,null);\n\t\tMap<String,String> moreOneCard = getMissingCard(queryDate, unitId, null,null,null);\n\t\t\n\t\t\n\t\tSet<String> missCardSet = missCard.keySet();\n\t\t\n\t\tSet<String> oneMoreCardSet = moreOneCard.keySet();\n\t\tDateInfo info = dateInfoService.getDateInfo(unitId, queryDate);\n\t\tattendancename[4] = \"缺卡人数\";\n\t\tattendancename[6] = \"旷工人数\";\n\t\tif(info != null && \"N\".equals(info.getIsfeast())){\n\t\t\t\n\t\t\t//得到符合条件的 缺卡人数\n\t\t\tmissCardSet.retainAll(userSet);\n\t\t\tSet<String> missRetain = new HashSet<String>(missCardSet);\n\t\t\tmissRetain.retainAll(applySet);\n\t\t\tmissCardSet.removeAll(missRetain);\n\t\t\t\n\t\t\tattendanceNum[4] = missCardSet.size();\n\t\t\t\n\t\t\tapplySet.addAll(oneMoreCardSet);\n\t\t\tint allSum = userSet.size();\n\t\t\tuserSet.retainAll(applySet);\n\t\t\tint notWorkNum = allSum - userSet.size();\n\t\t\tattendanceNum[6] = notWorkNum;\n\t\t}else{\n\t\t\tattendanceNum[4] = 0;\n\t\t\tattendanceNum[6] = 0;\n\t\t}\n//\t\tjson.put(\"yInterval\",max_ds);\n\t\tjson.put(\"legendData\", new String[]{\"人数\"});\n\t\tjson.put(\"xAxisData\", attendancename);\n\t\tjson.put(\"loadingData\", new Integer[][]{attendanceNum});\n\t\treturn json.toString();\n\t}", "@RequestMapping(\"/api/oneTimeRecords\")\n\tpublic List<OneTimeCustomerRecord> oneTimeRecords() {\n\n\t\tLOGGER.info(\"Method entry {}\", oneTimeRecordsMethod);\n\n\t\tList<OneTimeCustomerRecord> customerRecordsList = null;\n\n\t\ttry {\n\n\t\t\t// Invoke onetimerecordservice method\n\t\t\tcustomerRecordsList = oneTimeRecordService.findAll();\n\n\t\t} catch (ServiceException e) {\n\t\t\tLOGGER.error(\"Exception occurred while fetching the data.\", e);\n\t\t}\n\n\t\tLOGGER.info(\"Method exit {}\", oneTimeRecordsMethod);\n\n\t\treturn customerRecordsList;\n\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDate() != null)\n sb.append(\"Date: \").append(getDate()).append(\",\");\n if (getCreatedAt() != null)\n sb.append(\"CreatedAt: \").append(getCreatedAt()).append(\",\");\n if (getStatus() != null)\n sb.append(\"Status: \").append(getStatus()).append(\",\");\n if (getFromAttachedDisks() != null)\n sb.append(\"FromAttachedDisks: \").append(getFromAttachedDisks());\n sb.append(\"}\");\n return sb.toString();\n }", "@JsonIgnore public Collection<java.util.Date> getWebCheckinTimes() {\n final Object current = myData.get(\"webCheckinTime\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<java.util.Date>) current;\n }\n return Arrays.asList((java.util.Date) current);\n }", "@Override\n\tpublic void parseSource() throws JSONException {\n\t\tif(jsonObject.has(\"employee_data\")){\n\t\t\tJSONArray dailyAttendanceJSONArray = jsonObject.getJSONArray(\"employee_data\");\n\t\t\tArrayList<DailyAttendanceListModel> dailyAttendanceArr = new ArrayList<DailyAttendanceListModel>();\n\n\t\t\tfor(int i=0;i<dailyAttendanceJSONArray.length();i++){\n\t\t\t\tJSONObject dailyAttendanceObject = dailyAttendanceJSONArray.getJSONObject(i);\n\t\t\t\tDailyAttendanceListModel dailyAttendanceListModel = new DailyAttendanceListModel(dailyAttendanceObject);\n\t\t\t\tdailyAttendanceListModel.parseSource();\n\t\t\t\tdailyAttendanceArr.add(dailyAttendanceListModel);\n\t\t\t}\n\n\t\t\tthis.setDailyAttendanceListModels(dailyAttendanceArr);\n\t\t\t\n\t\t}\n\t}", "public void displayAppointmentsOnDate(Date date) {\n ArrayList<Appointment> appts = new ArrayList<>();\n String doctorID = getIntent().getStringExtra(\"doctorID\");\n\n // Get doctor's availableAppointmentIDs\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_USERS)\n .child(doctorID)\n .child(Constants.FIREBASE_PATH_USERS_APPTS_AVAILABLE)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot availableApptIDsSnapshot) {\n for (DataSnapshot availableApptIDChild : availableApptIDsSnapshot.getChildren()) { // Loop through all of doctor's availableApptIDs\n String availableApptID = availableApptIDChild.getValue(String.class);\n\n // For each availableAppointmentID, get the Appointment object\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_APPOINTMENTS)\n .child(availableApptID)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot availableApptSnapshot) {\n Appointment appt = availableApptSnapshot.getValue(Appointment.class);\n if (appt != null && !appt.isBooked() && !appt.isPassed() && DateUtility.isSameDay(appt.getDate(), date)) {\n appts.add(appt);\n displayAppointments(appts);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: Appointment associated w/ availableAppointmentID not found\n Toast.makeText(getApplicationContext(), \"Error: Couldn't find available appointment\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: No availableAppointmentIDs found\n Toast.makeText(getApplicationContext(), \"Error: No available appointments\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void printApp(Date dat)\n {\n if(cal.containsKey(dat)){\n List x = [];\n x = cal.get(dat);\n System.out.println(\"Your appointments for \" + dat + \"are: \\n\");\n for(int i = 0; i<x.size(); i++){\n System.out.println(x.get(i).getStartTime() + x.get(i).getEndTime() + x.get(i).getDescription());\n }\n }else{\n System.out.println(\"No appointments\");\n }\n \n }", "public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }", "public void RealinTime(String employeeId,String date) {\n\n Map<String,String> shiftdata=new HashMap<String,String>();\n shiftdata.put(\"employeeId\",employeeId);\n shiftdata.put(\"shiftDate\",date);\n\n\n\n retrofit2.Call<RealTime> call = apiService.getRealTimeData(shiftdata);\n call.enqueue(new Callback<RealTime>() {\n @Override\n public void onResponse(retrofit2.Call<RealTime> call, Response<RealTime> response) {\n\n if (response.isSuccessful()) {\n // pd.dismiss();\n\n\n if (response.body().getStatus().equals(\"1\")) {\n for(int i=0;i<response.body().getData().size();i++) {\n\n\n try {\n if(!response.body().getData().get(i).getIntime().equals(\"\")) {\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy hh:mm aa\",Locale.US);\n\n SimpleDateFormat format1 = new SimpleDateFormat(\"hh:mm aa\",Locale.US);\n Date date = format.parse(response.body().getData().get(i).getIntime());\n Date dt = new Date(String.valueOf(date));\n realintime.setText(format1.format(dt));\n in_time.setText(format1.format(dt));\n\n Log.e(\"Intime\",format1.format(dt));\n Log.e(\"Intime1\",response.body().getData().get(i).getIntime());\n // Log.e(\"outtime\",response.body().getData().get(i).getOutTime());\n }\n /*if(!response.body().getData().get(i).getOutTime().equals(\"\")) {\n SimpleDateFormat format2 = new SimpleDateFormat(\"dd MMM yyyy HH:mm:ss\");\n\n SimpleDateFormat format3 = new SimpleDateFormat(\"HH:mm\");\n Date date1 = format2.parse(response.body().getData().get(i).getOutTime());\n realouttime.setText(format3.format(date1));\n }*/\n } catch (Exception e) {\n e.printStackTrace();\n }\n try{\n if(!response.body().getData().get(i).getOutTime().equals(\"\")) {\n SimpleDateFormat format2 = new SimpleDateFormat(\"dd-MMM-yyyy hh:mm aa\",Locale.US);\n //Log.e(\"outtime\",response.body().getData().get(i).toString());\n\n\n SimpleDateFormat format3 = new SimpleDateFormat(\"hh:mm aa\",Locale.US);\n Date date1 = format2.parse(response.body().getData().get(i).getOutTime());\n realouttime.setText(format3.format(date1));\n out_time.setText(format3.format(date1));\n Log.e(\"outtime\",format3.format(date1));\n Log.e(\"outtime1\",response.body().getData().get(i).getOutTime());\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }\n }else {\n switch (response.code()) {\n case 404:\n //Toast.makeText(ErrorHandlingActivity.this, \"not found\", Toast.LENGTH_SHORT).show();\n EmpowerApplication.alertdialog(\"File or directory not found\", Attend_Regularization.this);\n break;\n case 500:\n EmpowerApplication.alertdialog(\"server broken\", Attend_Regularization.this);\n\n //Toast.makeText(ErrorHandlingActivity.this, \"server broken\", Toast.LENGTH_SHORT).show();\n break;\n default:\n EmpowerApplication.alertdialog(\"unknown error\", Attend_Regularization.this);\n\n //Toast.makeText(ErrorHandlingActivity.this, \"unknown error\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n }\n\n\n }\n\n @Override\n public void onFailure(retrofit2.Call<RealTime> call, Throwable t) {\n // Log error here since request failed\n Log.e(\"TAG\", t.toString());\n //pd.dismiss();\n\n EmpowerApplication.alertdialog(t.getMessage(),Attend_Regularization.this);\n\n }\n });\n }", "protected static String saveScheduleJSON(ArrayList<Room> roomList) {\n JSONArray jsonArray = new JSONArray();\n\n for (int i = 0; i < roomList.size(); i++) {\n JSONObject roomDetails = new JSONObject();\n for (int j = 0; j < roomList.get(i).getMeetings().size(); j++) {\n roomDetails.put(\"room_capacity\", roomList.get(i).getCapacity());\n roomDetails.put(\"room_meetings\", roomList.get(i).getMeetings()\n .get(j).getStartTime());\n roomDetails.put(\"room_meetings\", roomList.get(i).getMeetings()\n .get(j).getStopTime());\n roomDetails.put(\"room_meetings\", roomList.get(i).getMeetings()\n .get(j).getSubject());\n roomDetails.put(\"room_name\", roomList.get(i).getName());\n }\n jsonArray.put(roomDetails);\n\n }\n // check file exists or not\n File file = new File(\"D://fromJSON.csv\");\n String csv = CDL.toString(jsonArray);\n try {\n FileUtils.writeStringToFile(file, csv);\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"can't export scheduling details to json \");\n }\n return csv;\n\n }", "public void jsonCallback(String url, JSONObject json, AjaxStatus status) {\n ArrayList reservas = new ArrayList();\n idReservas = new ArrayList();\n if (json != null) {\n //Log.v(\"JSON\", json.toString());\n String jsonResponse = \"\";\n try {\n //Get json as Array\n JSONArray jsonArray = json.getJSONArray(\"reservation\");\n //Toast.makeText(aq.getContext(), jsonArray.toString(), Toast.LENGTH_LONG).show();\n if (jsonArray != null) {\n int len = jsonArray.length();\n for (int i = 0; i < len; i++) {\n //Get the events\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n //Example\n//{\"reservation\": [{\"id\":\"46\",\"name\":\"carlos\",\"hour\":\"1900\",\"day\":\"20\",\"month\":\"05\",\"year\":\"2014\",\n// \"description\":\"\",\"idField\":\"41\",\"idLogin\":\"5\"}]}\n//Elements to calendar view\n Cursor c = manager.buscarCanchaById(jsonObject.getString(\"idField\"));\n String nombreCancha = \"\";\n if (c.moveToFirst()){ // data?\n nombreCancha = c.getString(c.getColumnIndex(\"name\"));\n }\n reservas.add(i+1+\".\"+ nombreCancha);\n reservas.add(\"hora: \"+jsonObject.getString(\"hour\") + \"- Día: \" + jsonObject.getString(\"day\") + \"/\" + jsonObject.getString(\"month\") + \"/\" +\n jsonObject.getString(\"year\"));\n idReservas.add(jsonObject.getString(\"id\"));\n //jsonObject.getString(\"description\");\n //jsonObject.getString(\"idField\");\n //jsonObject.getString(\"idLogin\");\n }\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n Toast.makeText(aq.getContext(), \"Error in parsing JSON\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(aq.getContext(), \"Something went wrong\", Toast.LENGTH_LONG).show();\n }\n // 1. pass context and data to the custom adapter\n items = generateData(reservas);\n adapter2 = new MyAdapter(this, items);\n\n // 3. setListAdapter\n listView.setAdapter(adapter2);\n\n }\n //When JSON is null\n else {\n //When response code is 500 (Internal Server Error)\n if(status.getCode() == 500){\n Toast.makeText(aq.getContext(),\"Server is busy or down. Try again!\",Toast.LENGTH_SHORT).show();\n }\n //When response code is 404 (Not found)\n else if(status.getCode() == 404){\n Toast.makeText(aq.getContext(),\"Resource not found!\",Toast.LENGTH_SHORT).show();\n }\n //When response code is other 500 or 404\n else{\n Toast.makeText(aq.getContext(),\"Verifique su conexion\",Toast.LENGTH_SHORT).show();\n }\n }\n }", "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "@ResponseBody\n\t@GetMapping(\"/employees-sort-by-hiredate\")\n\tpublic List<Employee> listEmployeesSortByHiredate() {\n\t\tList<Employee> theEmployeesSortByHiredate = employeeDAO.getEmployeesSortByHiredate();\n\t\t\n\t\treturn theEmployeesSortByHiredate;\n\t}", "void displayAppointment(){\n\r\n if(accountType.equalsIgnoreCase(\"Patient\")){\r\n try{\r\n int i = user.getAppointments().size();\r\n Appointment appointment = user.getAppointments().get(i - 1);\r\n appointmentTime.setText(appointment.getDate().toString());\r\n appointmentNewsFeed.setText(\"Dr.\" + appointment.getSpecialist().getFirstname() + \" \" + appointment.getSpecialist().getLastname());\r\n appointmentStatus.setText(appointment.getStatus());\r\n\r\n if(appointment.getStatus().equalsIgnoreCase(\"CANCEL\")){\r\n appointmentStatus.setForeground(Color.RED);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"WAITING\")){\r\n appointmentStatus.setForeground(Color.YELLOW);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"IN-PROGRESS\")){\r\n appointmentStatus.setForeground(Color.GREEN);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"FINISHED\")){\r\n appointmentStatus.setForeground(Color.BLUE);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"NEW APPOINTMENT\")){\r\n appointmentStatus.setForeground(Color.cyan);\r\n }\r\n\r\n }catch(Exception e){\r\n appointmentNewsFeed.setText(\"No Upcoming Appointments\");\r\n }\r\n }else if(accountType.equalsIgnoreCase(\"Specialist\")){\r\n try{\r\n int i = user.getAppointments().size();\r\n Appointment appointment = user.getAppointments().get(i - 1);\r\n appointmentTime.setText(appointment.getDate().toString());\r\n appointmentNewsFeed.setText(appointment.getPatient().getFirstname() + \" \" + appointment.getPatient().getLastname());\r\n appointmentStatus.setText(appointment.getStatus());\r\n\r\n if(appointment.getStatus().equalsIgnoreCase(\"CANCEL\")){\r\n appointmentStatus.setForeground(Color.RED);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"WAITING\")){\r\n appointmentStatus.setForeground(Color.YELLOW);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"IN-PROGRESS\")){\r\n appointmentStatus.setForeground(Color.GREEN);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"FINISHED\")){\r\n appointmentStatus.setForeground(Color.BLUE);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"NEW APPOINTMENT\")){\r\n appointmentStatus.setForeground(Color.cyan);\r\n }\r\n\r\n\r\n }catch(Exception e){\r\n appointmentNewsFeed.setText(\"No Upcoming Appointments\");\r\n }\r\n\r\n }else if(accountType.equalsIgnoreCase(\"Administrator\")){\r\n try{\r\n int i = user.getAppointments().size();\r\n Appointment appointment = user.getAppointments().get(i - 1);\r\n appointmentTime.setText(appointment.getDate().toString());\r\n appointmentNewsFeed.setText(\"Dr.\" + appointment.getSpecialist().getFirstname() + \" \" + appointment.getSpecialist().getLastname() + \" and \" + appointment.getPatient().getFirstname() + \" \" + appointment.getPatient().getLastname());\r\n appointmentStatus.setText(appointment.getStatus());\r\n\r\n if(appointment.getStatus().equalsIgnoreCase(\"CANCEL\")){\r\n appointmentStatus.setForeground(Color.RED);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"WAITING\")){\r\n appointmentStatus.setForeground(Color.YELLOW);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"IN-PROGRESS\")){\r\n appointmentStatus.setForeground(Color.GREEN);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"FINISHED\")){\r\n appointmentStatus.setForeground(Color.BLUE);\r\n }\r\n else if(appointment.getStatus().equalsIgnoreCase(\"NEW APPOINTMENT\")){\r\n appointmentStatus.setForeground(Color.cyan);\r\n }\r\n\r\n }catch(Exception e){\r\n appointmentNewsFeed.setText(\"No Upcoming Appointments\");\r\n }\r\n }\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }", "public ArrayList<DailyHours> getDayList()\r\n\t{\r\n\t\treturn new ArrayList<DailyHours>(dailyHourLog);\r\n\t}", "@Override\n public HashMap<String, Object> toMap() {\n\n HashMap<String,Object> hashMap=new HashMap<>();\n hashMap.put(ApodClientAPI.APOD_START_DATE,APOD_START_DATE);\n hashMap.put(ApodClientAPI.APOD_END_DATE,APOD_END_DATE);\n hashMap.put(ApodClientAPI.APOD_API_KEY,ApodClientAPI.APOD_API_KEY_VALUE);\n\n\n return hashMap;\n }", "private void getExamsList() {\r\n\r\n\t// if(!ApplicationData.isFileExists(appData.getExamsListFile())){\r\n\r\n\t// downloadExamsList();\r\n\r\n\t// return;\r\n\t// }\r\n\ttry{\r\n\t final String content = ApplicationData.readFile(appData\r\n\t\t .getExamsListFile());\r\n\t Logger.warn(tag, \"Exams list json is:\" + content);\r\n\t examsArrayList = JSONParser.getExamsList(ApplicationData\r\n\t\t .readFile(appData.getExamsListFile()));\t\t\t\r\n\t} catch (final Exception e) {\r\n\t Logger.error(tag, e);\r\n\t ToastMessageForExceptions(R.string.JSON_PARSING_EXCEPTION);\r\n\t backToDashboard();\r\n\t}\r\n\tif (examsArrayList.size() == 0) {\r\n\t emptystatus.bringToFront();\r\n\t emptystatus.setText(R.string.empty_status);\r\n\t examsList.setVisibility(View.GONE);\r\n\t ll.setVisibility(View.GONE);\r\n\t} else {\r\n\t emptystatus.setVisibility(View.GONE);\r\n\t examsList.bringToFront();\r\n\t}\r\n\r\n\tfinal ExamslistArrayAdapter examAdapter = new ExamslistArrayAdapter(\r\n\t\tactivityContext, R.layout.examlist_row, examsArrayList);\r\n\r\n\texamAdapter.sort(new Comparator<ExamDetails>() {\r\n\r\n\t @Override\r\n\t public int compare(ExamDetails lhs, ExamDetails rhs) {\r\n\t\tfinal Date startDate = new Date(lhs.getStartDate());\r\n\t\tfinal Date endDate = new Date(rhs.getStartDate());\r\n\t\treturn startDate.compareTo(endDate);\r\n\t }\r\n\t});\r\n\r\n\texamsList.setAdapter(examAdapter);\r\n\texamAdapter.notifyDataSetChanged();\r\n\t/*\r\n\t * examsList.setAdapter(new ExamslistArrayAdapter(activityContext,\r\n\t * R.layout.examlist_row, examsArrayList));\r\n\t */\r\n }", "@GetMapping(path = \"/api/activity/attendedactivities/{token}\")\n public ArrayList<ActivityDTO> getAttendedActivities(@PathVariable String token) {\n return activityService.getAllAttendedActivities(userService.getUserIDFromJWT(token));\n }", "private static String fetchElevHistory(){\n\t\tRequestData req = new RequestData(\"activities/elevation/date/today/max\");\t//make request\n\t\treq.sendRequest();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//send request\n\t\tJSONObject json1 = new JSONObject(req.getBody());\t\t\t\t\t\t\t//make json from response\n\t\tJSONArray json = json1.getJSONArray(\"activities-elevation\");\n\t\treturn json.toString();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return goals as json\n\t}" ]
[ "0.6217119", "0.5928379", "0.5910501", "0.58083504", "0.57390124", "0.57144266", "0.57077724", "0.5682467", "0.56753653", "0.56731504", "0.5654077", "0.55582714", "0.55538994", "0.5516727", "0.55113864", "0.5500496", "0.54765445", "0.5442858", "0.54051113", "0.53677905", "0.53549767", "0.5331723", "0.53132623", "0.5308454", "0.53016657", "0.52708846", "0.52693063", "0.52626383", "0.5254526", "0.5249553", "0.5238786", "0.52337986", "0.52279997", "0.5176632", "0.5169372", "0.5162384", "0.51544327", "0.5153586", "0.51504624", "0.5138771", "0.5137837", "0.5134992", "0.51345843", "0.51310235", "0.5129869", "0.5117427", "0.51126415", "0.5108944", "0.5102442", "0.5100743", "0.50992185", "0.5090475", "0.5083283", "0.50753576", "0.50712156", "0.5070434", "0.50640446", "0.5063566", "0.5060918", "0.50591177", "0.50466734", "0.5042911", "0.5041835", "0.5023093", "0.50222045", "0.5016813", "0.5012841", "0.49891862", "0.498808", "0.49848646", "0.4984426", "0.4959214", "0.4953785", "0.4952699", "0.49508858", "0.49470997", "0.4943856", "0.4940075", "0.49362922", "0.49238735", "0.49225596", "0.49209204", "0.49135312", "0.49134797", "0.49128777", "0.49081764", "0.4904367", "0.4902794", "0.49026936", "0.48993787", "0.4895177", "0.48940393", "0.48811775", "0.48725602", "0.48687145", "0.48673448", "0.48639745", "0.48541114", "0.48537073", "0.48518336" ]
0.5830548
3
This method is to find individual employee attendance for given date.
@RequestMapping(value = "/getDailyReportGraphOfIndividual", method = RequestMethod.POST) public @ResponseBody String getDailyReportOfIndividual(@RequestParam("employeeId") int employeeId, @RequestParam("attendanceDate") String attendanceDate) { logger.info("inside ReportGenerationController getDailyReportOfIndividual()"); return reportGenerationService.getDailyReportOfIndividual(employeeId, new Date(Long.valueOf(attendanceDate))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord()\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord();\n\t}", "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 }", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "public void updateAttendance(Date date);", "@RequestMapping(value = \"/getAllEmployeesReportByDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeesReportByDate(\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeesReportByDate()\");\r\n\r\n return reportGenerationService\r\n .getAllEmployeesReportByDate(new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n\tpublic List<Attendance> findAttendanceList() {\n\t\treturn attendanceMapper.findAttendanceList();\n\t}", "@RequestMapping(value = \"/getReportByIdAndDate\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByIdAndDate(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate, HttpServletRequest request) {\r\n logger.info(\"inside ReportGenerationController getReportByIdAndDate()\");\r\n\r\n return reportGenerationService.getEmployeeWorkingDetailsByIdAndDate(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid);\n\t}", "public List<Absence> getAllAbsencesOnAGivenDate(LocalDate date) throws SQLException {\n List<Absence> allAbsencesForADate = new ArrayList(); //get a list to store the values.\n java.sql.Date sqlDate = java.sql.Date.valueOf(date); // converts LocalDate date to sqlDate\n try(Connection con = dbc.getConnection()){\n String SQLStmt = \"SELECT * FROM ABSENCE WHERE DATE = '\" + sqlDate + \"'\";\n Statement statement = con.createStatement();\n ResultSet rs = statement.executeQuery(SQLStmt);\n while(rs.next()) //While you have something in the results\n {\n int userKey = rs.getInt(\"studentKey\");\n allAbsencesForADate.add(new Absence(userKey, date)); \n } \n }\n return allAbsencesForADate;\n }", "@Override\r\n\tpublic List<Exam> listAllExamsByDate(LocalDate date)\r\n\t{\n\t\treturn null;\r\n\t\t\r\n\t}", "public List<AttendanceRecord> getMyAttendance(SystemAccount user, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getStaffId().equalsIgnoreCase(user.getStaff().getStaffId()) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "AttendanceDTO get(long id);", "public List<Employee> findEmployeesForService(LocalDate date, Set<EmployeeSkill> skills) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n Set<EmployeeSkill> employeeSkills = skills;\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n Set<EmployeeSkill> intersectionSkills = new HashSet<>();\n intersectionSkills.addAll(employeeSkills);\n intersectionSkills.retainAll(employee.getSkills());\n\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek) && (intersectionSkills.size() == employeeSkills.size())) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "@GetMapping(\"/appointments/date/{id}/{date}\")\n public List<Appointment> getAppointmentByConsultantAndDate(@PathVariable(\"id\")Long id,@PathVariable(\"date\") @DateTimeFormat(iso= DateTimeFormat.ISO.DATE) LocalDate date) {\n return (appointmentService.findAppsByConsultantAndDate(id,date));\n }", "public void checkOutAttendance(Date d, String staffID) {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = Calendar.getInstance().getTime();\n Timestamp ts = new Timestamp(date.getTime());\n AttendanceRecord ar = new AttendanceRecord();\n\n for(AttendanceRecord a:arDao.findByStaff(sDao.findByStaffId(staffID).get(0)) ){\n if(df.format(a.getDate()).equals(df.format(d)) ){\n ar = a;\n }\n }\n\n ar.setCheckOutTime(ts);\n arDao.save(ar);\n }", "@Override\r\n\tpublic List<Attendance> listAttendanceByMonth(LocalDate month)\r\n\t{\n\t\treturn null;\r\n\t}", "public List<UserAttendance> getDayAttendance(Date[] dates, SysUser sysUser) {\n return findByQuery(\"from UserAttendance where (checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=? or checkdate=?) and user.id=? and type is not null order by checkdate, noon\",\n dates[0], dates[1], dates[2], dates[3], dates[4], dates[5], dates[6], sysUser.getId());\n }", "public static Boolean isEntry(LocalDate date, Date dateEmployee) {\n return date.equals(convertDate(dateEmployee));\n }", "@Override\n\tpublic List<AppointmentDto> getAppointmentByUserIdForADate(int userId, Date date) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_BY_USERID_ON_PARTICULAR_DATE, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"),rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, userId, date );\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<EventAttendanceDTO> findOne(Long id) {\n log.debug(\"Request to get EventAttendance : {}\", id);\n return eventAttendanceRepository.findById(id)\n .map(eventAttendanceMapper::toDto);\n }", "public boolean checkIfUserHadCheckedAttendanceToday(int userID, String date) {\n connect();\n boolean bool;\n try {\n ResultSet result = statement.executeQuery(\"SELECT EXISTS (SELECT date FROM Attendance\" +\n \"WHERE studentID LIKE '\" + userID + \"\" +\n \"AND date LIKE '\" + date + \"'');\");\n\n // tutaj if obslugujacy wynik query\n result.close();\n statement.close();\n connection.close();\n return true;\n } catch (SQLException e) {\n// e.printStackTrace();\n return false;\n }\n// return bool;\n }", "@Override\n\tpublic List<OfficeAttendanceInfo> listOfficeAttendanceInfoByDateAndState(\n\t\t\tString unitId, Date startDate, Date endDate, String state, Date date) {\n\t\treturn officeAttendanceInfoDao.listOfficeAttendanceInfoByDateAndState(unitId, startDate, endDate, state, date);\n\t}", "public static EventAttendance createEntity(EntityManager em) {\n EventAttendance eventAttendance = new EventAttendance()\n .attendanceDate(DEFAULT_ATTENDANCE_DATE);\n return eventAttendance;\n }", "private DailyHours findEntryByDate(String day)\r\n\t{\r\n\t\t//cycle the dailyHourLog arraylist\r\n\t\tfor(DailyHours singleDay : dailyHourLog)\r\n\t\t{\r\n\t\t\t//selection structure returning true that the date matches \r\n\t\t\tif(singleDay.getDate().equals(day))\r\n\t\t\t{\r\n\t\t\t\treturn singleDay;\r\n\t\t\t\t\t\t\r\n\t\t\t}//end selection structure returning the date equals \r\n\t\t}//end for loop cycling the dailyHourLog ArrayList\r\n\t\t\r\n\t\t//else the value was not found, so return null\r\n\t\treturn null;\r\n\t}", "public List<Assignment> searchAssignmentsByDate(String date) throws Exception{\n\t\t\n\t\tList<Assignment> assignments = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_DUEDATE + \" = '\"+date+\"'\";\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tassignments.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tLog.d(\"Add\", \"Search results - \"+assignments.size());\n\t\t\treturn assignments;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "@Override\n @Transactional\n public List<CalendarEntry> getActivitiesByPersonAndDay(final Long personId, final LocalDateTime date) {\n return getCalendarEntryRepository().getByPersonIdAndDateFromBetweenOrPersonIdAndDateToBetweenOrderByDateToAsc(\n personId, date, date.plusDays(1), personId, date, date.plusDays(1));\n }", "public List<TimeSheet> showfilledTimeSheet(Integer employeeId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n return timeSheetRepository.getTimeSheet(employeeId, date);\n }", "ApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;", "public TimeSheet showfilledTimeSheet(Integer employeeId, Integer projectId, LocalDate date) {\n log.info(\"Inside TimeSheetService#showfilledTimeSheet Method\");\n TimeSheet timeSheet = timeSheetRepository.getTimeSheet(employeeId, projectId, date);\n return timeSheet;\n }", "@Override\n\tpublic Map<String, String> getOfficeAttendanceInfoByDateAndState(\n\t\t\tString state, Date date, String unitId, Date startDate, Date endDate) {\n\t\treturn officeAttendanceInfoDao.getOfficeAttendanceInfoByDateAndState(state, date, unitId, startDate, endDate);\n\t}", "public List<AttendanceRecord> getAllAttendance(String loc, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getLocation().equalsIgnoreCase(loc) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "@Override\n @Transactional(readOnly = true)\n public Page<EventAttendanceDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all EventAttendances\");\n return eventAttendanceRepository.findAll(pageable)\n .map(eventAttendanceMapper::toDto);\n }", "@Override\n\tpublic List<AttendanceState> findAttendanceState() {\n\t\treturn attendanceMapper.findAttendanceState();\n\t}", "public Employee findEmployee(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public String getOneDayStatistic(String unitId, String groupId,\n\t\t\tString deptId, Date queryDate) {\n\t\tMap<String,String> allAttendance = new HashMap<String,String>();\n\t\tList<OfficeAttendanceGroup> groupList = officeAttendanceGroupService.listOfficeAttendanceGroupByUnitId(unitId);\n\t\tString[] groupIds = new String[groupList.size()];\n\t\tfor(int m=0;m<groupList.size();m++){\n\t\t\tgroupIds[m] = groupList.get(m).getId();\n\t\t}\n\t\tMap<String,List<OfficeAttendanceGroupUser>> groupUserMap = officeAttendanceGroupUserService.getOfficeAttendanceGroupUserMap(groupIds);\n\t\tList<OfficeAttendanceExcludeUser> excludeUsers = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n\t\tSet<String> excludeSet = new HashSet<String>();\n\t\tfor(OfficeAttendanceExcludeUser exclude:excludeUsers){\n\t\t\texcludeSet.add(exclude.getUserId());\n\t\t}\n\t\tif(StringUtils.isNotEmpty(groupId)){\n\t\t\tList<OfficeAttendanceGroupUser> groupUserList = groupUserMap.get(groupId);\n\t\t\tallAttendance = covertOfficeAttendanceInfoMap(groupUserList , excludeUsers);\n\t\t\t\n\t\t}else if(StringUtils.isNotEmpty(deptId)){\n\t\t\tList<User> deptUser = userService.getUsersByDeptId(deptId);\n\t\t\tallAttendance = covertUserMap(deptUser,excludeUsers);\n\t\t}else{\n\t\t\tList<User> unitUser = userService.getUserListByUnitId(unitId, null, User.TEACHER_LOGIN, null);\n\t\t\tallAttendance = covertUserMap(unitUser ,excludeUsers);\n\t\t}\n\t\tSet<String> userSet = allAttendance.keySet();\n\t\tint i =0;\n\t\tString[] userIds = new String[userSet.size()];\n\t\tfor(String s:userSet){\n\t\t\tuserIds[i++] = s;\n\t\t}\n\t\t\n\t\tJSONObject json = new JSONObject();\n//\t\tJSONArray jsonArr = new JSONArray();\n//\t\tJSONObject json2 = null;\n\t\tString[] attendancename = new String[11];\n\t\tInteger[] attendanceNum = new Integer[11];\n//\t\t取该单位下 迟到早退List\n\t\tList<OfficeAttendanceInfo> later = listOfficeAttendanceInfoByDateAndState(unitId, null,null,AttendanceConstants.ATTENDANCE_CLOCK_STATE_1, queryDate);\n\t\tList<OfficeAttendanceInfo> leaveEarly = listOfficeAttendanceInfoByDateAndState(unitId,null,null, AttendanceConstants.ATTENDANCE_CLOCK_STATE_2, queryDate);\n\n\t\tint laterSum = 0;\n\t\tint leaveEarlySum =0;\n\t\tlaterSum = sumLeaveOrLater(allAttendance,later);\n\t\tleaveEarlySum = sumLeaveOrLater(allAttendance,leaveEarly);\n\n\t\tattendancename[0] = \"迟到人数\";\n\t\tattendanceNum[0] = laterSum;\n\t\t\n\n\t\tattendancename[1] = \"早退人数\";\n\t\tattendanceNum[1] = leaveEarlySum;\n\t\tMap<String,String> costomAttendance = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_DEFAULT, queryDate, unitId,null,null);\n\t\tMap<String,String> outWork = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_3, queryDate, unitId,null,null);\n\t\t\n\t\n\t\tint customSum=0;\n\t\tint outWorkSum=0;\n\t\tcustomSum =sumPeople(allAttendance,costomAttendance);\n\t\toutWorkSum =sumPeople(allAttendance,outWork);\n\n\t\tattendancename[2] = \"正常考勤人数\";\n\t\tattendanceNum[2] = customSum;\n\n\t\tattendancename[3] = \"外勤考勤人数\";\n\t\tattendanceNum[3] = outWorkSum;\n\t\n//\t\tList<Teacher> teacherList = teacherService.getTeachers(unitId);\n//\t\tList<OfficeAttendanceExcludeUser> notAddAttendance = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n//\t\tint sumNotAddAttencedance = sumNotAttendance(allAttendance,notAddAttendance,flag);\n//\t\t\n//\t\tint attendanceNum = allAttendance.size() - sumNotAddAttencedance;\n\n\t\tattendancename[5] = \"考勤人数\";\n\t\tattendanceNum[5] = allAttendance.size();\n\t\n\t\tSet<String> applySet = new HashSet<String>();\n\t\tList<OfficeTeacherLeave> leaveList = officeTeacherLeaveService.getQueryList(unitId, userIds, queryDate, queryDate, null, true);\n\t\tint leaveSum =0;\n\t\tfor(OfficeTeacherLeave l:leaveList){\n\t\t\tif(userSet.contains(l.getApplyUserId())){\n\t\t\t\tapplySet.add(l.getApplyUserId());\n\t\t\t\tleaveSum++;\n\t\t\t}\n\t\t}\n\n\t\tattendancename[7] = \"请假人数\";\n\t\t\n\t\tattendanceNum[7] = leaveSum;\n\t\tList<OfficeGoOut> gooutList = officeGoOutService.getListByStarttimeAndEndtime(queryDate, DateUtils.addDay(queryDate, 1), userIds);\n\t\tint goOutSum=0;\n\t\tfor(OfficeGoOut g:gooutList){\n\t\t\tif(userSet.contains(g.getApplyUserId())){\n\t\t\t\tapplySet.add(g.getApplyUserId());\n\t\t\t\tgoOutSum++;\n\t\t\t}\n\t\t}\n\t\tattendancename[8] = \"外出人数\";\n\t\tattendanceNum[8] = goOutSum;\n\t\tList<OfficeBusinessTrip> tripList = officeBusinessTripService.getListByStarttimeAndEndtime(queryDate, queryDate, userIds);\n\t\t\n\t\tMap<String,Set<String>> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, DateUtils.addDay(queryDate, 1));\n\t\tint tripSum = 0;\n\t\tfor(OfficeBusinessTrip t:tripList){\n\t\t\tif(userSet.contains(t.getApplyUserId())){\n\t\t\t\tapplySet.add(t.getApplyUserId());\n\t\t\t\ttripSum++;\n\t\t\t}\n\t\t}\n\n//\t\tMap<String,Integer> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, queryDate);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tint jtGoOutNum = jtGoOutMap.get(format.format(queryDate));\n\t\tattendancename[9] = \"出差人数\";\n\t\tattendanceNum[9] = tripSum;\n\t\tSet<String> jtSet = jtGoOutMap.get(format.format(queryDate));\n\t\tif(jtSet == null) jtSet = new HashSet<String>();\n\t\tattendancename[10] = \"集体外出人数\";\n\t\tattendanceNum[10] = jtSet.size();\n\t\tapplySet.addAll(jtSet);\n\t\t\n\t\tMap<String,String> missCard = getMissingCard(queryDate, unitId, AttendanceConstants.ATTENDANCE_CLOCK_STATE_98 ,null,null);\n\t\tMap<String,String> moreOneCard = getMissingCard(queryDate, unitId, null,null,null);\n\t\t\n\t\t\n\t\tSet<String> missCardSet = missCard.keySet();\n\t\t\n\t\tSet<String> oneMoreCardSet = moreOneCard.keySet();\n\t\tDateInfo info = dateInfoService.getDateInfo(unitId, queryDate);\n\t\tattendancename[4] = \"缺卡人数\";\n\t\tattendancename[6] = \"旷工人数\";\n\t\tif(info != null && \"N\".equals(info.getIsfeast())){\n\t\t\t\n\t\t\t//得到符合条件的 缺卡人数\n\t\t\tmissCardSet.retainAll(userSet);\n\t\t\tSet<String> missRetain = new HashSet<String>(missCardSet);\n\t\t\tmissRetain.retainAll(applySet);\n\t\t\tmissCardSet.removeAll(missRetain);\n\t\t\t\n\t\t\tattendanceNum[4] = missCardSet.size();\n\t\t\t\n\t\t\tapplySet.addAll(oneMoreCardSet);\n\t\t\tint allSum = userSet.size();\n\t\t\tuserSet.retainAll(applySet);\n\t\t\tint notWorkNum = allSum - userSet.size();\n\t\t\tattendanceNum[6] = notWorkNum;\n\t\t}else{\n\t\t\tattendanceNum[4] = 0;\n\t\t\tattendanceNum[6] = 0;\n\t\t}\n//\t\tjson.put(\"yInterval\",max_ds);\n\t\tjson.put(\"legendData\", new String[]{\"人数\"});\n\t\tjson.put(\"xAxisData\", attendancename);\n\t\tjson.put(\"loadingData\", new Integer[][]{attendanceNum});\n\t\treturn json.toString();\n\t}", "public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "@Override\n public List<EventAttendanceDTO> findByUserLogin(String userLogin) {\n log.debug(\"Request to get EventAttendances by user login\");\n return eventAttendanceRepository.findEventAttendanceByUser_Login(userLogin)\n .stream().map(eventAttendanceMapper::toDto).collect(Collectors.toList());\n }", "public String[][] getAttendance(){\r\n\t\treturn attendance;\r\n\r\n\t}", "public EmployeeAbsent recordEmployeeAbsent(Employee emp, LocalDate startDate, LocalDate endDate, String reason) {\n\t\tEmployeeAbsent empAbs = null;\n\t\tAbsentYear absYear = findAbsentYear(emp, startDate);\n\t\tlong numDays = calculateNumberOfDaysAbsentInclusive(startDate, endDate);\n\t\tif(numDays > 0 ) {\n\t\t\tif(checksForAnnualLeaveAreOk(reason, absYear, numDays, emp.getEmpId())) {\n\t\t\t\tempAbs = GenericBuilder.of(EmployeeAbsent::new)\n\t\t\t\t\t\t.with(EmployeeAbsent::setAbsentStartDate, startDate)\n\t\t\t\t\t\t.with(EmployeeAbsent::setAbsentEndDate, endDate)\n\t\t\t\t\t\t.with(EmployeeAbsent::setAbsentYear, absYear)\n\t\t\t\t\t\t.with(EmployeeAbsent::setNumDays, numDays)\n\t\t\t\t\t\t.with(EmployeeAbsent::setReason, reason)\n\t\t\t\t\t\t.build();\n\t\t\t\tem.persist(empAbs);\n\t\t\t}\n\t\t}\n\t\treturn empAbs;\n\t}", "public void displayAppointmentsOnDate(Date date) {\n ArrayList<Appointment> appts = new ArrayList<>();\n String doctorID = getIntent().getStringExtra(\"doctorID\");\n\n // Get doctor's availableAppointmentIDs\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_USERS)\n .child(doctorID)\n .child(Constants.FIREBASE_PATH_USERS_APPTS_AVAILABLE)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot availableApptIDsSnapshot) {\n for (DataSnapshot availableApptIDChild : availableApptIDsSnapshot.getChildren()) { // Loop through all of doctor's availableApptIDs\n String availableApptID = availableApptIDChild.getValue(String.class);\n\n // For each availableAppointmentID, get the Appointment object\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_APPOINTMENTS)\n .child(availableApptID)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot availableApptSnapshot) {\n Appointment appt = availableApptSnapshot.getValue(Appointment.class);\n if (appt != null && !appt.isBooked() && !appt.isPassed() && DateUtility.isSameDay(appt.getDate(), date)) {\n appts.add(appt);\n displayAppointments(appts);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: Appointment associated w/ availableAppointmentID not found\n Toast.makeText(getApplicationContext(), \"Error: Couldn't find available appointment\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: No availableAppointmentIDs found\n Toast.makeText(getApplicationContext(), \"Error: No available appointments\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void addAttendance(String fileContents, String date) {\t\r\n\t\tthis.unfoundStudents = \"\";\r\n\t\tif (students != null) {\r\n\t\t\tthis.dates.add(date);\r\n\t\t\tfor (int i=0; i<students.size(); i++) {\r\n\t\t\t\tstudents.get(i).getAttendance().add(attendancePos, 0);\r\n\t\t\t}\r\n\t\t\tString[] dateString = fileContents.split(\"\\n\");\r\n\t\t\tfor (int i=0; i<dateString.length; i++) {\r\n\t\t\t\tboolean isFound = false;\r\n\t\t\t\tfor (int j=0; j<students.size(); j++) {\r\n\t\t\t\t\tif (dateString[i].contains(students.get(j).getASURITE())) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString[] dateSplit = dateString[i].split(\",\");\r\n\t\t\t\t\t\t\tif (students.get(j).getAttendance().get(attendancePos) == 0) {\r\n\t\t\t\t\t\t\t\tdataLoaded++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tstudents.get(j).getAttendance().add(attendancePos, students.get(j).getAttendance().get(attendancePos) + Integer.parseInt(dateSplit[1]));\r\n\t\t\t\t\t\t\tisFound = true;\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"File Format is incorrect\", \"Error\", 2);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (isFound == false) {\r\n\t\t\t\t\tString[] dateSplit = dateString[i].split(\",\");\r\n\t\t\t\t\tunfoundStudents += dateSplit[0] + \" connected for \" + dateSplit[1] + \" minutes.\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tattendancePos++;\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please load a roster before adding attendance\", \"Error\", 2);\r\n\t\t}\r\n\t}", "@Override\n public String editAttendanceDetails(HrAttendanceDetailsTO hrAttendanceDetailsTO, String empId) throws ApplicationException {\n long begin = System.nanoTime();\n String message = \"false\";\n int count = 0, compCode = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getCompCode();\n String month = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenMonth(), authBy = hrAttendanceDetailsTO.getAuthBy(), enteredBy = hrAttendanceDetailsTO.getEnteredBy();\n int workingDays = hrAttendanceDetailsTO.getWorkingDays(), presentDays = hrAttendanceDetailsTO.getPresentDays(), absentDays = hrAttendanceDetailsTO.getAbsentDays(),\n attenYear = hrAttendanceDetailsTO.getHrAttendanceDetailsPKTO().getAttenYear();\n double dedDays = hrAttendanceDetailsTO.getDeductDays();\n long overTime = hrAttendanceDetailsTO.getOverTimePeriod();\n HrAttendanceDetailsDAO hrAttendanceDetailsDAO = new HrAttendanceDetailsDAO(em);\n HrPersonnelDetailsDAO hrPersonnelDAO = new HrPersonnelDetailsDAO(em);\n UserTransaction ut = context.getUserTransaction();\n try {\n ut.begin();\n HrPersonnelDetails hrPersonnelDetails = hrPersonnelDAO.findByEmpStatusAndEmpId(compCode, empId, 'Y');\n if (hrPersonnelDetails.getHrPersonnelDetailsPK() != null) {\n HrAttendanceDetails hrAttendanceDetails = new HrAttendanceDetails();\n HrAttendanceDetailsPK hrAttendanceDetailsPK = new HrAttendanceDetailsPK();\n hrAttendanceDetailsPK.setCompCode(compCode);\n hrAttendanceDetailsPK.setEmpCode(hrPersonnelDetails.getHrPersonnelDetailsPK().getEmpCode().longValue());\n hrAttendanceDetailsPK.setAttenMonth(month);\n hrAttendanceDetailsPK.setAttenYear(attenYear);\n hrAttendanceDetails.setHrAttendanceDetailsPK(hrAttendanceDetailsPK);\n hrAttendanceDetails.setPostFlag('N');\n List<HrAttendanceDetails> hrAttendanceList = hrAttendanceDetailsDAO.findAttendanceDetailsPostedForMonth(hrAttendanceDetails);\n if (!hrAttendanceList.isEmpty()) {\n for (HrAttendanceDetails hrAttenDetailsEntity : hrAttendanceList) {\n hrAttenDetailsEntity.setAbsentDays(absentDays);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setWorkingDays(workingDays);\n hrAttenDetailsEntity.setPresentDays(presentDays);\n hrAttenDetailsEntity.setModDate(new Date());\n hrAttenDetailsEntity.setOverTimePeriod(overTime);\n hrAttenDetailsEntity.setAuthBy(authBy);\n hrAttenDetailsEntity.setEnteredBy(enteredBy);\n hrAttenDetailsEntity.setDeductDays(dedDays);\n hrAttendanceDetailsDAO.update(hrAttenDetailsEntity);\n count++;\n }\n } else {\n ut.rollback();\n return \"Attendance details already posted so can not be updated !\";\n }\n if (count != 0) {\n ut.commit();\n return \"Attendance details Successfully Updated for selected employee. \";\n }\n } else {\n ut.rollback();\n return \"There is no active employee in the company\";\n }\n } catch (DAOException e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n if (e.getExceptionCode().getExceptionMessage().equals(\"NoResultException\")) {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.NO_RESULT_FOUND, \"No result found.\"), ex);\n }\n } else {\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), e);\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"), ex);\n }\n }\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method editAttendanceDetails()\", e);\n try {\n ut.rollback();\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n } catch (Exception ex) {\n throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n \"System exception has occured\"));\n }\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for editAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return message;\n }", "public ArrayList<String> getVacationDay(GregorianCalendar date) throws IOException {\r\n\t\tArrayList<String> vacation = new ArrayList<String>();\r\n\t\tif (calendar.existsVacationDay(date)) {\r\n\t\t\t// getting shifts\r\n\t\t\tArrayList<Turno> shifts = calendar.getShiftsOfADay(date);\r\n\t\t\tfor (Turno t : shifts) {\r\n\t\t\t\t// adding number of doctors\r\n\t\t\t\tvacation.add(Integer.toString(t.getNumberOfDoctors()));\r\n\t\t\t}\r\n\t\t\t// adding special date\r\n\t\t\tvacation.add(shifts.get(0).getSpecialDate());\r\n\t\t\treturn vacation;\r\n\t\t}\r\n\t\telse throw new IOException(\"La fecha no corresponde a ningun dia vacacional \");\t\r\n\t}", "@Override\n public Set<Badminton> dateDetails(int personId, Date date) {\n /**\n * check the date is valid or not\n * start time will always less than end time and end time will always less than or equal to current time\n * date will always less than or equal to current date\n */\n validator.validDate(date);\n try {\n ResultSet resultSet = badmintonDao.dateDetails(personId,date);\n Set<Badminton> setDetails = new HashSet<Badminton>();\n\n /**\n * insert all details in set and return\n */\n while (resultSet.next()) {\n Timing timing = new Timing(resultSet.getTime(\"startTime\"), resultSet.getTime(\"endTime\"),\n resultSet.getDate(\"day\"));\n\n Badminton badminton = new Badminton(resultSet.getInt(\"badminton_id\"), resultSet.getInt(\"personid\"),\n timing, resultSet.getInt(\"numPlayers\"), resultSet.getString(\"result\"));\n\n setDetails.add(badminton);\n }\n return setDetails;\n }catch (SQLException e) {\n throw new ApplicationException(500,\"Sorry, some internal error comes in badminton service\");\n }\n }", "@RequestMapping(value = PatientSvcApi.GETAPPOINTMENTDATE_PATH, method = RequestMethod.GET)\n\tpublic @ResponseBody Patient getAppointmentDate(\n\t\t\t@PathVariable(PatientSvcApi.MEDICALRECORDID) String medicalRecordId, HttpServletResponse response)\n\t{\n\t\tPatient p = operations.getAppointmentDate(medicalRecordId);\n\t\tif (p == null)\n\t\t{\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t}\n\t\treturn p;\n\t}", "@Override\npublic void attendance(String attendance) {\n\tSystem.out.println(this.name+ \" has a attendance of \" +this.attendance);\n}", "List<Patient> findPatients(Employee nurse_id);", "public byte[] readAttendanceExportFile(String empId, String fileName) {\n\n\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t// filePath += \"/\" + fileName +\".xlsx\";\n\n\t\tfilePath += \"/\" + fileName + \".xlsx\";\n\n\t\t// log.debug(\"PATH OF THE READ EXPORT FILE*********\"+filePath);\n\t\tFile file = new File(filePath);\n\t\t// log.debug(\"NAME OF THE READ EXPORT FILE*********\"+file);\n\n\t\tFileInputStream fileInputStream = null;\n\t\tbyte attd_excelData[] = null;\n\n\t\ttry {\n\n\t\t\tFile readJobFile = new File(filePath);\n\t\t\tattd_excelData = new byte[(int) readJobFile.length()];\n\n\t\t\t// read file into bytes[]\n\t\t\tfileInputStream = new FileInputStream(file);\n\t\t\tfileInputStream.read(attd_excelData);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (fileInputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfileInputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn attd_excelData;\n\n\t}", "public void checkAttendance() {\n\t\tRandom random = new Random();\n\t\trandomCheck = random.nextInt(3);\n\t\tif (randomCheck == isFullTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Full Time Present \");\n\t\t\tworkingHrs = 8;\n\t\t} else if (randomCheck == isPartTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Part time Present \");\n\t\t\tworkingHrs = 4;\n\t\t} else {\n\t\t\tSystem.out.println(\"Employee is Absent \");\n\t\t\tworkingHrs = 0;\n\t\t}\n\t}", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "public List<TimeSheet> showTimeSheetByEmployeeId(Integer eid){\n log.info(\"Inside TimeSheetService#showTimeSheetByEmployeeId Method\");\n return timeSheetRepository.getTimeSheetByEmployeeId(eid);\n }", "public void setDateExamine (java.util.Date dateExamine) {\n\t\tthis.dateExamine = dateExamine;\n\t}", "public ArrayList<PatientHealthContract> getHealthListByDate(String date) {\n SQLiteDatabase db = helper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n PatientHealthEntry.COLUMN_AGE + \",\" +\n PatientHealthEntry.COLUMN_EMAIL + \",\" +\n PatientHealthEntry.COLUMN_BLOOD_GROUP + \",\" +\n PatientHealthEntry.COLUMN_MEDICATION + \",\" +\n PatientHealthEntry.COLUMN_CONDITION + \",\" +\n PatientHealthEntry.COLUMN_NOTES + \",\" +\n PatientHealthEntry.COLUMN_DATE_OF_VISIT +\n \" FROM \" + PatientHealthEntry.TABLE_NAME +\n \" WHERE \" + PatientHealthEntry.COLUMN_DATE_OF_VISIT + \" = \" + \"'\" + date + \"'\" + \";\";\n\n //PatientHealthEntry patient = new PatientHealthEntry();\n ArrayList<PatientHealthContract> healthList = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n PatientHealthContract patient = new PatientHealthContract();\n patient.setAge(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_AGE)));\n patient.setBloodGroup(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_BLOOD_GROUP)));\n patient.setCondition(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_CONDITION)));\n patient.setMedication(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_MEDICATION)));\n patient.setNotes(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_NOTES)));\n patient.setDateVisit(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_DATE_OF_VISIT)));\n patient.setEmail(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_EMAIL)));\n healthList.add(patient);\n\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return healthList;\n }", "@Override\r\n\tpublic CalendarDTO calendarLogs(Date empJoiningDateObj, Date fromDate, Date toDate,\r\n\t\t\tList<AttendanceLogDTO> attendanceLogDtoList, List<AttendanceRegularizationRequestDTO> arRequestDtoList,\r\n\t\t\tString[] weekOffPatternArray, List<HolidayDTO> holidayDtoList, Shift shiftNameObj,\r\n\t\t\tList<LeaveEntryDTO> leaveEntryDtoList, HalfDayRuleDTO halfDayRuleDto) {\r\n\r\n\t\tLong maxRequireHour = halfDayRuleDto.getMaximumRequireHour();\r\n\t\tLong minRequireHour = halfDayRuleDto.getMinimumRequireHour();\r\n\r\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"dd\");\r\n\t\t/*\r\n\t\t * SimpleDateFormat monthFormat = new SimpleDateFormat(\"MM\"); int month =\r\n\t\t * Integer.parseInt(monthFormat.format(fromDate));\r\n\t\t * System.out.println(\"Month ---->\" + month);\r\n\t\t */\r\n\t\t// int days = Integer.parseInt(dayFormat.format(toDate));\r\n\r\n\t\tCalendarDTO calendarDto = new CalendarDTO();\r\n\r\n\t\tSimpleDateFormat simdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString strDate = simdf.format(fromDate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(simdf.parse(strDate));\r\n\t\t} catch (ParseException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<MonthAttendanceDTO> monthAttendanceDtoList = new ArrayList<MonthAttendanceDTO>();\r\n\t\tList<DaysAttendanceLogDTO> daysAttendanceLogDtoList = new ArrayList<DaysAttendanceLogDTO>();\r\n\r\n\t\tfor (int i = 1; i <= Integer.parseInt(dayFormat.format(toDate)); i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tj++;\r\n\t\t\tMonthAttendanceDTO monthAttendanceDto = new MonthAttendanceDTO();\r\n\t\t\tmonthAttendanceDto.setActionDate(c.getTime());\r\n\r\n\t\t\tmonthAttendanceDtoList.add(monthAttendanceDto);\r\n\t\t\tc.add(Calendar.DATE, j);\r\n\r\n\t\t}\r\n\r\n\t\tDate empJoiningDate = empJoiningDateObj!= null ? empJoiningDateObj : null;\r\n\t\tfor (MonthAttendanceDTO monthAttendance : monthAttendanceDtoList) {\r\n\r\n\t\t\tString inTime = null;\r\n\t\t\tString outTime = null;\r\n\t\t\tString mode = null;\r\n\t\t\t// Date actionDate = null;\r\n\t\t\tDaysAttendanceLogDTO daysAttendanceLogDto = new DaysAttendanceLogDTO();\r\n\t\t\t/* DayLogsDTO dayLogsDto = new DayLogsDTO(); */\r\n\t\t\t/*\r\n\t\t\t * Attendance\r\n\t\t\t */\r\n\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tString actDate = dateFormat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\tDate currentData = new Date();\r\n\t\t\t// String currentData = dateFormat.format(crntDate);\r\n\r\n\t\t\tDate actionDate = null;\r\n\t\t\ttry {\r\n\t\t\t\tactionDate = dateFormat.parse(actDate);\r\n\t\t\t} catch (ParseException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\r\n\t\t\t\t\t// attendanceLogDtoList.forEach(attendanceLog -> {\r\n\t\t\t\t\tfor (AttendanceLogDTO attendanceLog : attendanceLogDtoList) {\r\n\r\n\t\t\t\t\t\tString attendanceDate = dateFormat.format(attendanceLog.getAttendanceDate());\r\n\r\n\t\t\t\t\t\tif (attendanceDate.equals(actDate)) {\r\n\r\n\t\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\r\n\r\n\t\t\t\t\t\t\tDate outDate = null;\r\n\t\t\t\t\t\t\tDate inDate = null;\r\n\r\n\t\t\t\t\t\t\toutTime = attendanceLog.getOutTime();\r\n\t\t\t\t\t\t\tinTime = attendanceLog.getInTime();\r\n\t\t\t\t\t\t\tmode = attendanceLog.getMode();\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\toutDate = (Date) sdf.parse(outTime);\r\n\t\t\t\t\t\t\t\tinDate = (Date) sdf.parse(inTime);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * dayLogsDto.setFirstIn(inTime); dayLogsDto.setLastOut(outTime);\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tLong diff = outDate.getTime() - inDate.getTime();\r\n\t\t\t\t\t\t\t\tLong diffHours = diff / (60 * 60 * 1000) % 24;\r\n\r\n\t\t\t\t\t\t\t\tif (minRequireHour < diffHours) {\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour > diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (maxRequireHour <= diffHours) {\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\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} catch (ParseException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * ARRequest\r\n\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\tfor (AttendanceRegularizationRequestDTO ar : arRequestDtoList) {\r\n\r\n\t\t\t\t\t\t\t\tif (ar.getStatus().equals(StatusMessage.ABSENT_CODE)) {\r\n\r\n\t\t\t\t\t\t\t\t\tlong diff = ar.getFromDate().getTime() - ar.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\tlong diffDays = diff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\tList<String> dateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\tcalendar.setTime(ar.getFromDate());\r\n\t\t\t\t\t\t\t\t\tString date = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\tdateList.add(date);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= diffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\tString attDate = dateFormat.format(calendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tdateList.add(attDate);\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (dateList.contains(actDate))\r\n\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.AR_CODE);\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t * EmpLeaveEntry\r\n\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\tfor (LeaveEntryDTO leaveEntry : leaveEntryDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiff = leaveEntry.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- leaveEntry.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong leaveDiffDays = leaveDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\tList<String> leavedDteList = new ArrayList<String>();\r\n\r\n\t\t\t\t\t\t\t\t\t\tfinal Calendar leaveCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\tleaveCalendar.setTime(leaveEntry.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\tString leavedate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leavedate);\r\n\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= leaveDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tleaveCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\tString leaveDate = dateFormat.format(leaveCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\tleavedDteList.add(leaveDate);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (leavedDteList.contains(actDate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (\"A\".equals(leaveEntry.getStatus())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"H\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (\"F\".equals(leaveEntry.getHalf_fullDay()))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.PRESENT_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t\t\t * Holiday\r\n\t\t\t\t\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfor (HolidayDTO holiday : holidayDtoList) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiff = holiday.getFromDate().getTime()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t- holiday.getToDate().getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong holiDayDiffDays = holiDayDiff / (24 * 60 * 60 * 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> holiDayDateList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinal Calendar holiDatCalendar = Calendar.getInstance();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.setTime(holiday.getFromDate());\r\n\t\t\t\t\t\t\t\t\t\t\t\tString holiDayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holiDayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 1; i <= holiDayDiffDays; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDatCalendar.add(Calendar.DAY_OF_YEAR, i);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString holidayDate = dateFormat.format(holiDatCalendar.getTime());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tholiDayDateList.add(holidayDate);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (holiDayDateList.contains(actDate)) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.HALFDAY_CODE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * WeekOff\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tList<String> weekDayList = Arrays.asList(weekOffPatternArray);\r\n\t\t\t\t\tSimpleDateFormat simpleDateformat = new SimpleDateFormat(\"EEE\");\r\n\t\t\t\t\tString dayName = simpleDateformat.format(monthAttendance.getActionDate());\r\n\r\n\t\t\t\t\tif (weekDayList.contains(dayName.toUpperCase())) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(null);\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.OFF_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() == null) {\r\n\t\t\t\t\t\tdaysAttendanceLogDto.setTitle(StatusMessage.ABSENT_CODE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * shift\r\n\t\t\t */\r\n\t\t\tif (currentData.compareTo(actionDate) > 0) {\r\n\t\t\t\tif (empJoiningDate.compareTo(actionDate) < 0) {\r\n\t\t\t\t\tString title = \"\";\r\n\t\t\t\t\tString shift = null;\r\n\t\t\t\t\tif (daysAttendanceLogDto.getTitle() != null) {\r\n\t\t\t\t\t\ttitle = daysAttendanceLogDto.getTitle();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (shiftNameObj!=null) {\r\n\t\t\t\t\t shift = shiftNameObj.getShiftFName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * dayLogsDto.setShift(shift); dayLogsDto.setAttendance(title);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tdaysAttendanceLogDto.setTitle(title);\r\n\t\t\t\t\tdaysAttendanceLogDto.setInTime(inTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setOutTime(outTime);\r\n\t\t\t\t\tdaysAttendanceLogDto.setMode(mode);\r\n\t\t\t\t\tdaysAttendanceLogDto.setShift(shift);;\r\n\t\t\t\t\tdaysAttendanceLogDto.setStart(actDate);\r\n\t\t\t\t\t// dayLogsDto.setActionDate(actDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Date empJoiningDate = empJoiningDateObj[0] != null ? (Date)\r\n\t\t\t * (empJoiningDateObj[0]) : null; try { actionDate = dateFormat.parse(actDate);\r\n\t\t\t * } catch (ParseException e) { e.printStackTrace(); }\r\n\t\t\t * \r\n\t\t\t * if (empJoiningDate.compareTo(actionDate) > 0)\r\n\t\t\t * daysAttendanceLogDto.setTitle(\"\");\r\n\t\t\t */\r\n\r\n\t\t\t// dayLogsDto.setAttendance(daysAttendanceLogDto.getTitle());\r\n\r\n\t\t\tdaysAttendanceLogDtoList.add(daysAttendanceLogDto);\r\n\r\n\t\t\t/* dayLogsMap.put(actDate, dayLogsDto); */\r\n\t\t}\r\n\t\tcalendarDto.setEvents(daysAttendanceLogDtoList);\r\n\t\treturn calendarDto;\r\n\t}", "protected void updateAttendance(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\tint uid=Integer.parseInt(request.getParameter(\"user\"));\n\tint a = Integer.parseInt(request.getParameter(\"attendanceID\"));\n\tint t=Integer.parseInt(request.getParameter(\"intime\"));\n\tint t1=Integer.parseInt(request.getParameter(\"outtime\"));\n\tString s = request.getParameter(\"date\");\n\tString s1 = request.getParameter(\"details\");\n\n\nUserVO uv=new UserVO();\nuv.setUser_id(uid);\n\nAttendanceVO v=new AttendanceVO();\nv.setAtt_id(a);\nv.setIn_time(t);\nv.setOut_time(t1);\nv.setDate(s);\nv.setDetails(s1);\nv.setUserVO(uv);\n\nAttendanceDAO d=new AttendanceDAO();\n\nd.updateAttendance(v);\n\nsearchAttendance(request, response);\n\n}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public attendance() {\n initComponents();\n setDate();\n controller = new AttendanceController();\n getAllEmployees();\n generateAttendanceId();\n aIdtxt.setVisible(false);\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "private AbsentYear findAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = absYearRepo.findByEmployeeAndYear(emp, (short)startDate.getYear());\n\t\tif(absentYear == null) {\n\t\t\tabsentYear = createAbsentYear(emp, startDate);\n\t\t}\n\t\treturn absentYear;\n\t}", "@RequestMapping(value = \"/getreturned\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\ttry{\n\t\t\tEmployee employee=(Employee) userService.get(Integer.parseInt(httpSession.getAttribute(\"user\").toString()));\n\t\t\tBranchOffice branch=(employee.getBranchOffice());\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(branch, date));\n\t\t}catch(Exception e){\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\t\n\t\t}\n\t}", "public Employee getStudentOnId(int id);", "public void checkInAttendance(Date d, String shift, String staffID) {\n Date date = Calendar.getInstance().getTime();\n Timestamp ts = new Timestamp(date.getTime());\n\n //Create Attendance Record\n AttendanceRecord ar = new AttendanceRecord(d, shift, ts, sDao.findByStaffId(staffID).get(0));\n\n arDao.save(ar);\n }", "public void toBeAttending (int studentID, Date date);", "private void addToDailyReport(String day, double empHours, double empPay)\r\n\t{\r\n\t\t//reset singleDay just in case\r\n\t\tDailyHours singleDay = null;\r\n\t\t\r\n\t\t//call the findEntryByDate method to find the date\r\n\t\tsingleDay = findEntryByDate(day);\r\n\t\t\r\n\t\t//if the date is not found, create a new date object.\r\n\t\tif(singleDay == null)\r\n\t\t{\r\n\t\t\t//date not found, so create a new date object\r\n\t\t\tsingleDay = new DailyHours(day);\r\n\t\t\t\r\n\t\t\t//add the day to our inventory\r\n\t\t\tdailyHourLog.add(singleDay);\r\n\t\t}//end create new day \r\n\t\t\r\n\t\t//add the employee hours and pay to that day\r\n\t\tsingleDay.addHours(empHours);\r\n\t\tsingleDay.addPay(empPay,empHours);\r\n\t}", "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 }", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "public Employee getEmployeeDetailById(int id) {\n\t\treturn dao.getEmployeeDetailById(id);\n\t}", "@Override\n\tpublic Employee getEmployeeById(int emp_id) {\n\t\tlog.debug(\"EmplyeeService.getEmployeeById(int emp_id) return Employee object with id\" + emp_id);\n\t\treturn repositary.findById(emp_id);\n\t}", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "WorkdayPaygroupEmployeeTimeOff findEmployeeTimeOff(long employeeId, long companyId, String code);", "@Transactional(readOnly = true)\r\n\tpublic Employee getEmployee(String dniEmployee) {\r\n\t\tdniEmployee = dniEmployee.trim();\r\n\t\treturn (Employee) em.createQuery(\"select e from Employee e where e.idemployee='\"+dniEmployee+\"'\").getResultList().get(0);\r\n\t}", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "@Override\n\tpublic JsonListResult findCheckRecordByUidAndDate(String uid, String date) throws Exception {\n\t\tJsonListResult jsonListResult = new JsonListResult();\n\t\t date = date + \"%\";\n\t\tList<Map<String, Object>> list = wxRequestMapper.findCheckRecordByUidAndDate(uid , date);\n\t\tjsonListResult.setList(list);\n\t\treturn jsonListResult;\n\t}", "public HourlyEmployee getEmployee() {\n\t\treturn employee;\n\t}", "private static Appointment readAppointment() throws Exception {\n\t\tString descr = In.readLine(); \n\t\tif (! In.done()) return null; \n\t\tLocalDate date = readDate(); \n\t\tLocalTime time = readTime(); \n\t\tDuration duration = readDuration(); \n\t\treturn new Appointment(descr, LocalDateTime.of(date, time), duration);\n\t}", "public String viewByDate(LocalDate date) {\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\n\t\tString str = formatter.format(date);\n\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\t\t\tformatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\t\t\tstr = formatter.format(date);\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tstr = str + \"\\n\\n\" + \"\\t\" + e.sTime + \" - \" + e.eTime + \": \" + e.name;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstr = str + \"\\n\\n\"+\":: No Event Scheduled Yet ::\";\n\t\t}\n\n\t\treturn str;\n\n\t}", "@WebMethod public boolean findEvent(String event, Date date);", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "public boolean checkForAbsenceInDB(Absence absence) throws SQLException {\n int studentKey = absence.getStudentKey();\n java.sql.Date sqlDate = java.sql.Date.valueOf(absence.getDate()); // converts LocalDate date to sqlDate\n try(Connection con = dbc.getConnection()){\n String SQLStmt = \"SELECT * FROM ABSENCE WHERE StudentKey = '\" + studentKey + \"' AND DATE = '\" + sqlDate+\"';\";\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(SQLStmt);\n while(rs.next())\n {\n return true; // Absence found\n }\n }\n return false; // No Absence found\n }", "public Map<Long, ItaAttendance> findMap(PageContext page,\n\t\t\tItaAttendance condition) throws Throwable {\n\t\treturn null;\n\t}", "public Employeedetails checkEmployee(String uid);", "public static EventAttendance createUpdatedEntity(EntityManager em) {\n EventAttendance eventAttendance = new EventAttendance()\n .attendanceDate(UPDATED_ATTENDANCE_DATE);\n return eventAttendance;\n }", "@Override\n\n\tpublic StudentBean dispalyemployee(Integer id) {\n\t\tStudentBean employee = null;\n\t\tfor(StudentBean e:stu)\n\t\t{ \n\t\t\tif(e.getStuId()==id)\n\t\t\t{ \n\t\t\t\temployee=e;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn employee ;\n\t}", "@Override\n public List getAttendanceDetails(int compCode, int year ) throws ApplicationException {\n long begin = System.nanoTime();\n HrAttendanceDetailsDAO hrAttendanceDao = new HrAttendanceDetailsDAO(em);\n List attendanceList = new ArrayList();\n try {\n attendanceList = hrAttendanceDao.getAttenDataByComCodeAndCurrentYr(compCode, year);\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method getAttendanceDetails()\", e);\n throw new ApplicationException(e.getMessage());\n// throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n// \"System exception has occured\"));\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for getAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return attendanceList;\n }", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "@Override\n protected String doInBackground(Void... params) {\n\n final String[] columns = new String[]{\"emp_id\", \"Adate\",\n \"attendance\", \"absent_type\", \"lat\", \"lon\", \"savedServer\", \"month\",\n \"holiday_desc\", \"year\"};\n\n if (!cd.isConnectingToInternet()) {\n\n Flag = \"3\";\n // stop executing code by return\n\n } else {\n\n\n Flag = \"1\";\n\n try {\n\n Calendar calendar2 = Calendar.getInstance();\n SimpleDateFormat mdformat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String strDate = mdformat.format(calendar2.getTime());\n String firlogin;\n if(firstlogin){\n firlogin = \"No\";\n }else{\n firlogin = \"\";\n }\n\n soap_result_attendance = service.GetAttendanceList(username,strDate,firlogin);\n\n if (soap_result_attendance != null) {\n log = \"soap not null\";\n presentList = new ArrayList<AttendanceModel>();\n for (int i = 0; i < soap_result_attendance.getPropertyCount(); i++) {\n\n SoapObject soapObject = (SoapObject) soap_result_attendance.getProperty(i);\n\n if (soapObject.getProperty(\"status\") != null) {\n log = log + \"-status not null\";\n attstatus = cd.getNonNullValues(soapObject.getProperty(\"status\").toString());\n\n if (attstatus.equalsIgnoreCase(\"TRUE\")) {\n log = log + \"-attstatus true\";\n ADate = cd.getNonNullValues(soapObject.getProperty(\"ADate\").toString());\n\n AbsentType = cd.getNonNullValues(soapObject.getProperty(\"AbsentType\").toString());\n\n Aid = cd.getNonNullValues(soapObject.getProperty(\"ID\").toString());\n\n spe.putString(\"AttendAid\", Aid);\n spe.commit();\n\n AttendanceValue = cd.getNonNullValues(soapObject.getProperty(\"AttendanceValue\").toString());\n\n\n attendanceModel = new AttendanceModel();\n attendanceModel.setADate(ADate);\n attendanceModel.setAttendanceValue(AttendanceValue);\n attendanceModel.setAbsentType(AbsentType);\n attendanceModel.setAid(Aid);\n\n presentList.add(attendanceModel);\n log = log + \"-list add\";\n }\n }\n\n }\n\n Log.v(\"\", \"soap_result_attendance=\" + attstatus);\n\n if (attstatus.equalsIgnoreCase(\"TRUE\")) {\n ErroFlag = \"1\";\n log = log + \"-attstatus true 1\";\n for (int j = 0; j < presentList.size(); j++) {\n attendanceModel = presentList.get(j);\n\n SimpleDateFormat df = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss a\", Locale.US);\n Date date = df.parse(attendanceModel.getADate());\n\n SimpleDateFormat form = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US);\n savedate = form.format(date);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.US);\n String adate = sdf.format(date.getTime());\n\n String sld[] = adate.split(\" \");\n final String sld1 = sld[0];\n\n String ddd[] = adate.split(\"-\");\n final String year = ddd[0];\n log = log + \"-attstatus true 2\";\n String attendmonth1 = getmonthNo1(ddd[1]);\n log = log + \"-\" + attendmonth1;\n db.open();\n Cursor c = db.getuniquedataAttendance(username, adate);\n// String sql = \"select * from attendance where emp_id = \" + \"'\" + username + \"'\" + \" AND Adate like \" + \"'%\" + adate + \"%'\";\n// log = log + \"-\" + sql;\n//\n// Cursor c = db.rawQuery(sql);\n// log = log + \"-getuniquedataAttendance true\";\n int count = c.getCount();\n Log.v(\"\", \"\" + count);\n db.close();\n if (count > 0) {\n log = log + \"-getuniquedataAttendance 0\";\n db.open();\n db.update(adate,\n new String[]{\n username,\n savedate,\n attendanceModel.getAttendanceValue(),\n attendanceModel.getAbsentType(),\n \"0.0\",\n \"0.0\",\n \"1\",\n attendmonth1,\n \"\",\n year},\n new String[]{\n \"emp_id\", \"Adate\",\n \"attendance\", \"absent_type\",\n \"lat\", \"lon\", \"savedServer\", \"month\",\n \"holiday_desc\", \"year\"},\n \"attendance\", \"Adate\");\n\n db.close();\n\n } else {\n db.open();\n\n values = new String[]{username,\n savedate,\n attendanceModel.getAttendanceValue(),\n attendanceModel.getAbsentType(),\n \"0.0\",\n \"0.0\",\n \"1\",\n attendmonth1,\n \"\",\n year};\n\n db.insert(values, columns, \"attendance\");\n log = log + \"-insert true\";\n db.close();\n\n }\n\n }\n\n } else if (attstatus.equalsIgnoreCase(\"FAIL\")) {\n ErroFlag = \"1\";\n log = log + \"-status fail\";\n }\n } else {\n ErroFlag = \"0\";\n //String errors = \"Soap in giving null while 'Attendance' and 'checkSyncFlag = 2' in data Sync\";\n //we.writeToSD(errors.toString());\n final Calendar calendar1 = Calendar\n .getInstance();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\n \"MM/dd/yyyy HH:mm:ss\", Locale.ENGLISH);\n String Createddate = formatter1.format(calendar1\n .getTime());\n log = log + \"-attendance null\";\n n = Thread.currentThread().getStackTrace()[2].getLineNumber();\n db.insertSyncLog(\"Internet Connection Lost, Soap in giving null while 'GetSaveAttendace'\", String.valueOf(n), \"SaveAttendance()\", Createddate, Createddate, sp.getString(\"username\", \"\"), \"Transaction Upload\", \"Fail\");\n\n }\n\n\n } catch (Exception e) {\n ErroFlag = \"2\";\n Erro_function = \"Attendance\";\n e.printStackTrace();\n Error = e.toString();\n log = log + \"-exception null\";\n final Calendar calendar1 = Calendar\n .getInstance();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\n \"MM/dd/yyyy HH:mm:ss\", Locale.ENGLISH);\n String Createddate = formatter1.format(calendar1\n .getTime());\n\n n = Thread.currentThread().getStackTrace()[2].getLineNumber();\n db.insertSyncLog(Error, String.valueOf(n), \"GetSaveAttendance()\", Createddate, Createddate, sp.getString(\"username\", \"\"), \"Transaction Upload\", \"Fail\");\n\n\n }\n //}\n }\n\n return ErroFlag;\n }", "public ArrayList getAttCheck(SqlSessionTemplate sqlSession, Attendance a2) {\n\t\treturn (ArrayList)sqlSession.selectList(\"attendanceMapper.getAttCheck\", a2);\n\t}", "public void employeeAttendanceUsingCase() {\n\t\tswitch (randomCheck) {\n\t\tcase 1:\n\t\t\tcheckAttendance();\n\t\t\tcalculatingDailyWage();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcheckAttendance();\n\t\t\tcalculatingDailyWage();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tcheckAttendance();\n\t\t\tcalculatingDailyWage();\n\t\t}\n\t}", "public List getUserVacationHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n if (hireDateStart == null) {\n hireDateStart = new Date();\n }\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Vacation\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public int findEmployee(String name){\n log.debug(\"Inside findEmployee Method.\");\n int empID;\n String findEmpSQL = \"SELECT empID FROM employeeDetails WHERE name = \" + \"'\" + name + \"' AND businessID = \" + session.getLoggedInUserId();\n\n log.debug(\"Querying database for employeeID with name\" + name);\n resultSet = database.queryDatabase(findEmpSQL);\n\n try{\n if(resultSet.next()){\n empID = resultSet.getInt(\"empID\");\n log.info(\"Found employeeID: \" + empID);\n log.debug(\"Successfully found empID, returning to controller.\");\n return empID;\n }\n }\n catch (Exception e){\n log.error(e.getMessage());\n }\n log.debug(\"Failed to find empID, returning to controller.\");\n return -1;\n }", "public DaySummary getSummaryForDay(String date){\n String[] values = date.split(\"-\");\n int day = Integer.parseInt(values[0]);\n int month = Integer.parseInt(values[1]);\n int year = Integer.parseInt(values[2]);\n\n LocalDateTime localDateTime1 = LocalDateTime.of(year,month,day,0,0);\n LocalDateTime localDateTime2 = LocalDateTime.of(year,month,day+1,0,0);\n\n Date date1 = Date.from( localDateTime1.atZone( ZoneId.systemDefault()).toInstant());\n Date date2 = Date.from( localDateTime2.atZone( ZoneId.systemDefault()).toInstant());\n return daySummaryRepository.findAllBySummaryDateBetween(date1, date2).get(0);\n }", "@RequestMapping(value = \"/getreturnedadmin\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedAdminToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\n\t}", "public int getAttendanceCount() {\n return attendanceCount;\n }", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\tpublic Optional<LineReport> findReportbyId(int date) {\n\t\treturn null;\n\t}", "public Employeedetails getEmployee(Employeedetails employeeDetail,\n\t\t\tConnection connection) {\n\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tString employeeId = employeeDetail.getEmployeeId();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tString squery = \"select * from employeeregister where employeeid ='\"\n\t\t\t\t\t+ employeeId + \"';\";\n\t\t\trs = statement.executeQuery(squery);\n\t\t\tif (rs.next()) {\n\t\t\t\t/*\n\t\t\t\t * return \"<h2>Details of Employee # \" + employeeId + \" </h2><p><h3>Employee\n\t\t\t\t * name: \" + rs.getString(2) + \"</h3>\";\n\t\t\t\t */\n\t\t\t\temployeeDetail.setEmployeeName(rs.getString(2));\n\n\t\t\t} else {\n\t\t\t\temployeeDetail.setEmployeeName(\"0\");\n\t\t\t}\n\n\t\t} catch (SQLException sqle) {\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn employeeDetail;\n\n\t}", "public AttendanceTypeConstant getAttendanceType() {\n\t\treturn this.attendanceType;\n\t}" ]
[ "0.6791898", "0.6773062", "0.6527278", "0.64528376", "0.6351508", "0.6349889", "0.62936664", "0.62559974", "0.6197815", "0.6196875", "0.6161423", "0.61386675", "0.61068445", "0.60453707", "0.6041015", "0.58727604", "0.58250564", "0.57823557", "0.57225037", "0.5693845", "0.56143737", "0.56042755", "0.55872023", "0.55334085", "0.552045", "0.55198514", "0.5517709", "0.55085754", "0.5500064", "0.54782075", "0.546381", "0.5452454", "0.5381307", "0.5329999", "0.52952194", "0.52910393", "0.5278228", "0.52604544", "0.5237867", "0.5236172", "0.5212837", "0.5202947", "0.5183806", "0.51546115", "0.5125141", "0.5124761", "0.51178294", "0.5109991", "0.51087785", "0.50657123", "0.50584763", "0.5048633", "0.5047898", "0.5041042", "0.50369656", "0.5020348", "0.5018008", "0.50125873", "0.50059414", "0.49924618", "0.4989778", "0.49871692", "0.49818236", "0.49674588", "0.49671605", "0.49664244", "0.49663582", "0.4965352", "0.49605134", "0.4951432", "0.4946626", "0.49375504", "0.49312896", "0.49100244", "0.49034527", "0.4891944", "0.48884943", "0.48785427", "0.48766473", "0.48662156", "0.4861707", "0.4855642", "0.48543617", "0.48460284", "0.4840349", "0.4840035", "0.48372513", "0.48217958", "0.48099282", "0.48053518", "0.48042142", "0.47966596", "0.47952226", "0.479236", "0.4786463", "0.47853476", "0.4784783", "0.47836006", "0.47834897", "0.47824997" ]
0.57872915
17
This method is to find individual employee productivity for given year.
@RequestMapping(value = "/getEmployeeAnnualProductivity", method = RequestMethod.POST) public @ResponseBody String getEmployeeAnnualProductivity( @RequestParam("employeeId") int employeeId, @RequestParam("year") int year) { logger.info("inside ReportGenerationController getEmployeeAnnualProductivity()"); logger.info("data received: employee id: " + employeeId + " year: " + year); return reportGenerationService.getEmployeeAnnualProductivity(employeeId, year); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getAllEmployeeAnnualProductivity\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeeAnnualProductivity(@RequestParam(\"year\") int year) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeeAnnualProductivity()\");\r\n logger.info(\"data received: year: \" + year);\r\n\r\n return reportGenerationService.getAllEmployeeAnnualProductivity(year);\r\n\r\n }", "protected static void searchByYear(int yearLow, int yearHigh) {\n for (Product element : productList) {\n System.out.println(\"lowerYear: \" + yearLow);\n System.out.println(\"upperYear: \" + yearHigh);\n if (element.productYearMatch(yearLow, yearHigh)) // if product years match, the product will be printed\n {\n System.out.println(\"\");\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n }\n }\n }", "public static double calculateEmployeeBonus(int employeeSalaryForBenefits, int numberOfYearsWithCompany, String employeePerformance) {\n double total = 0;\n\n try {\n Scanner stdin = new Scanner(System.in);\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n numberOfYearsWithCompany = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if (Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0])) {\n numberOfYearsWithCompany--;\n }\n\n System.out.println(\"Please enter this year's performance, as indicated by HR: \");\n employeePerformance = stdin.nextLine();\n stdin.close();\n\n if (numberOfYearsWithCompany >= 1) {\n if (employeePerformance.equals(\"Excellent\")) {\n total = (employeeSalaryForBenefits * 0.15);\n } else if (employeePerformance.equals(\"Good\")) {\n total = (employeeSalaryForBenefits * 0.10);\n } else if (employeePerformance.equals(\"Average\")) {\n total = (employeeSalaryForBenefits * 0.05);\n } else if (employeePerformance.equals(\"Bad\")) {\n total = 0;\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n System.out.println(\"This will be the yearly bonus for this Employee's performance: \" + total);\n return total;\n }", "private AbsentYear findAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = absYearRepo.findByEmployeeAndYear(emp, (short)startDate.getYear());\n\t\tif(absentYear == null) {\n\t\t\tabsentYear = createAbsentYear(emp, startDate);\n\t\t}\n\t\treturn absentYear;\n\t}", "public Double calculateMatchingExperience(Long candidateExpYears, Long companyExpYears) {\n try {\n if (Objects.equals(candidateExpYears, companyExpYears)) {\n return (double) 100;\n } else if (companyExpYears - 1 == candidateExpYears || companyExpYears + 1 == candidateExpYears) {\n return (double) 50;\n } else return (double) 0;\n } catch (Exception ex) {\n logger.error(\"Candidate Experience Years or Company Experience Years cannot be null ||\" + ex.getMessage());\n throw new IllegalArgumentException(\"Wrong Arguments\");\n }\n }", "public Vehicle getYear(int year) {\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\tVehicle temp = vehicles.get(i);\n\n\t\t\tif (temp.getYear() == year) {\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "int getExpYear(String bookingRef);", "@Override\n\t\t\t\tpublic Double getRevenuePerYearBykinder(int id, String year) {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "@Test()\n public void testGetForecastPerYear() {\n\tYear year = Year.of(2016);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(11030.25, forecast, 0.01);\n }", "public static double calculateEmployeePension(int employeeSalaryForBenefits) {\n double total = 0;\n try {\n Scanner stdin = new Scanner(System.in);\n\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n stdin.close();\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n Integer yearsEmployed = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if ( Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0]) ) {\n yearsEmployed--;\n }\n\n total = (((employeeSalaryForBenefits * 12) * 0.05) * yearsEmployed);\n\n\n\n\n System.out.println(\"Total pension to receive by employee based on \" + yearsEmployed + \" years with the company \" +\n \"(5% of yearly salary for each year, based on employee's monthly salary of $\" + employeeSalaryForBenefits + \"): \" + total);\n\n }\n catch (NumberFormatException e) {\n e.printStackTrace();\n }\n return total;\n }", "double getPricePerPerson();", "private AbsentYear createAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = new AbsentYear();\n\t\tabsentYear.setEmployee(emp);\n\t\tabsentYear.setYear((short)startDate.getYear());\n\t\tabsYearRepo.save(absentYear);\n\t\treturn absentYear;\n\t}", "@Override\n public List getAttendanceDetails(int compCode, int year ) throws ApplicationException {\n long begin = System.nanoTime();\n HrAttendanceDetailsDAO hrAttendanceDao = new HrAttendanceDetailsDAO(em);\n List attendanceList = new ArrayList();\n try {\n attendanceList = hrAttendanceDao.getAttenDataByComCodeAndCurrentYr(compCode, year);\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method getAttendanceDetails()\", e);\n throw new ApplicationException(e.getMessage());\n// throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n// \"System exception has occured\"));\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for getAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return attendanceList;\n }", "protected static void searchByIdYear(String Id, int yearLow, int yearHigh) {\n System.out.println(\"lowerYear: \" + yearLow);\n System.out.println(\"upperYear: \" + yearHigh);\n for (Product element : productList) {\n if (element.productIdMatch(Id) && element.productYearMatch(yearLow, yearHigh)) {\n System.out.println(\" \");\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString() + \"\\n\");\n }\n\n }\n }", "double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}", "public int getTravelsInYear(String year) {\n EntityManager em = getEntityManager();\n Calendar initDate = Calendar.getInstance();\n initDate.set(Calendar.DAY_OF_MONTH, 31);\n initDate.set(Calendar.MONTH, 11);\n initDate.set(Calendar.YEAR, Integer.parseInt(year)-1);\n Calendar endDate = Calendar.getInstance();\n endDate.set(Calendar.DAY_OF_MONTH, 1);\n endDate.set(Calendar.MONTH, 0);\n endDate.set(Calendar.YEAR, Integer.parseInt(year)+1);\n return ((Number) em.createNamedQuery(\"Viaje.getYearTravels\")\n .setParameter(\"initDate\", initDate.getTime())\n .setParameter(\"endDate\", endDate.getTime()).getSingleResult()).intValue();\n }", "@Query(value = \"select * from patent_details order by year asc;\", nativeQuery = true)\n public Iterable<PatentDetails> findYearwisePatentDetails();", "private double calculateYearlyLoyaltyPoints(int year){\n \tLoyalty txnLoyalty = compositePOSTransaction.getLoyaltyCard();\n\t\tif (txnLoyalty == null){\n\t\t\treturn 0.0;\n\t\t}else if(!txnLoyalty.isYearlyComputed()){\n\t\t\treturn 0.0;\n\t\t}\n\t\t\n\t\tif(com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\tcom.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null){\n \t\t// this is an inquiry\n\t\t\tif (year == 0) {\n\t\t\t\treturn txnLoyalty.getCurrYearBalance();\n\t\t\t} else {\n\t\t\t\treturn txnLoyalty.getLastYearBalance();\n\t\t\t}\n\t\t}\n\t\t\n\t\tdouble loyaltyUsed = compositePOSTransaction.getUsedLoyaltyPoints();\n\t\tdouble points = compositePOSTransaction.getLoyaltyPoints();\n\n\t\tdouble currBal = txnLoyalty.getCurrBalance();\n\t\tdouble currYearBal = txnLoyalty.getCurrYearBalance();\n\t\tdouble lastYearBal = txnLoyalty.getLastYearBalance();\n\t\tif (loyaltyUsed > 0) {\n\t\t\tif (txnLoyalty.getLastYearBalance() < loyaltyUsed) {\n\t\t\t\tcurrYearBal = currYearBal - (loyaltyUsed - lastYearBal);\n\t\t\t\tlastYearBal = 0.0;\n\t\t\t} else {\n\t\t\t\tlastYearBal -= loyaltyUsed;\n\t\t\t}\n\t\t\tcurrBal -= loyaltyUsed;\n\t\t} else {\n\t\t\tcurrBal -= loyaltyUsed;\n\t\t\tcurrYearBal -= loyaltyUsed;\n\t\t}\n\n\t\tif (txnLoyalty.isYearlyComputed()) {\n\t\t\tcurrYearBal += points;\n\t\t} else {\n\t\t\tcurrYearBal = 0.0;\n\t\t\tlastYearBal = 0.0;\n\t\t}\n\n\t\tif (year == 0) {\n\t\t\treturn currYearBal;\n\t\t} else {\n\t\t\treturn lastYearBal;\n\t\t}\n }", "public int employeeSalaryForBenefits(String employeeName) {\n\n int actualSalaryOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n actualSalaryOfEmployee = Integer.valueOf(salaryField);\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return actualSalaryOfEmployee;\n\n }", "@Override\n public List<Vehicle> findByYear(BigDecimal year) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles.year_model\", Operation.EQ, year));\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "@Override\n\tpublic double calcSimple(double amt, int year, float rate) {\n\t\tdouble si = amt * year * rate / 100.0;\n\t\treturn si;\n\t}", "public Double calcMovieRentalPrice(Integer unitPrice, Integer numOfDays, String videoReleaseYear);", "@Override\r\n\tpublic int fetchYearOfAnEmployee(int clockNum) {\n\t\treturn exemptTeamMemberDAO.fetchYearOfAnEmployee(clockNum);\r\n\t}", "public double[] getPriceStats(String year){\n for (int i = 0; i < priceMonthCounter.length; i++) priceMonthCounter[i]=0;\n \n for (TransferImpl movement : MovementsController.getInstanceOf().getMovements()) {\n \t// Convert the util.Date to LocalDate\n \tLocalDate date = movement.getLeavingDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t// Filter movements by year\n \t// Filter movements by year\n\t if(date.getYear()==Integer.parseInt(year)){\n\t \tint month = date.getMonthValue() - 1; \n\t \n\t \tswitch (movement.getType().toLowerCase()) {\n\t \tcase \"return\":\n\t \t\tintMonthCounter[month]-=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \tcase \"sold\":\n\t \t\tintMonthCounter[month]+=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \t}\n\t }\n\t \n\t for(int i=0; i<priceMonthCounter.length;i++) \n\t \tpriceMonthCounter[i] = Double.parseDouble(this.convertPriceToString(intMonthCounter[i]));\n }\n \n return priceMonthCounter;\n\t}", "public YearProfit(){}", "public static int computeEmpWageForCompany(String company ,int empRate,int numOfDays,int maxHrs) {\n\n int empHrs = 0;\n int totalEmpHrs = 0;\n int totalWorkingDays = 0;\n\n while (totalEmpHrs < maxHrs && totalWorkingDays < numOfDays) {\n totalWorkingDays ++;\n System.out.println(\"Day:\" + totalWorkingDays);\n\n int empCheck = (int) Math.floor(Math.random() * 10) % 3;\n switch (empCheck) {\n case IS_PART_TIME:\n System.out.println(\"Empcheck is 1 (parttime)\");\n empHrs = 4;\n break;\n case IS_FULL_TIME:\n System.out.println(\"Empcheck is 2 (fulltime)\");\n empHrs = 8;\n break;\n default:\n System.out.println(\"Empcheck is 0\");\n empHrs = 0;\n }\n totalEmpHrs = (totalEmpHrs + empHrs);\n System.out.println(\"Day : \" +totalWorkingDays+ \"Employee hours:\" + empHrs);\n }\n int totalEmpWage =totalEmpHrs * empRate;\n System.out.println(\"Total Employee wage for company : \" +company+ \"is \"+totalEmpWage);\n return totalEmpWage;\n }", "public Calendar calculateEasterForYear(int year) {\n int a = year % 4;\n int b = year % 7;\n int c = year % 19;\n int d = (19 * c + 15) % 30;\n int e = (2 * a + 4 * b - d + 34) % 7;\n int month = (int) Math.floor((d + e + 114) / 31);\n int day = ((d + e + 144) % 31) + 1;\n day++;\n\n Calendar instance = Calendar.getInstance();\n instance.set(Calendar.YEAR, year);\n instance.set(Calendar.MONTH, month);\n instance.set(Calendar.DAY_OF_MONTH, day);\n\n instance.add(Calendar.DAY_OF_MONTH, 13);\n\n return instance;\n }", "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }", "public double accumValue(int yearsElapsed) \n {\n double formulaPart2 = 1; // initialize the var that will store the value of (1 + r/n)^nt\n int timePerYear = 0; // initialize the var that will store how frequently the interest is calculated in a year.\n \n if (compMode.equalsIgnoreCase(\"daily\"))\n {\n timePerYear = 365; // For a daily compounded deposit, the interest is calculated 365 times a year\n }\n else if(compMode.equalsIgnoreCase(\"quarterly\"))\n {\n timePerYear = 4; // For a quarterly compounded deposit, the interest is calculated 4 times a year\n }\n else if(compMode.equalsIgnoreCase(\"monthly\"))\n {\n timePerYear = 12; // For a monthly compounded deposit, the interest is calculated 12 times a year\n }\n \n // a loop to calculate the power in (1 + r/n)^nt\n for (int i = 0; i < timePerYear * yearsElapsed; i++)\n {\n // formulaPart2 gets the value of itelf multiplied nt times\n formulaPart2 = formulaPart2 * (1 + interest/ 100 / timePerYear);\n }\n \n return principal * formulaPart2; // return p(1 + r/n)^nt\n }", "public static ArrayList<Integer> getYearlyPowerUsage() {\n try {\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"TrafalgarLaw18\");\n ResultSet result = connection.createStatement().executeQuery(\"select * from public.yearlyevaluation;\");\n connection.close();\n ArrayList<Integer> list = new ArrayList<Integer>();\n while(result.next()) {\n int val = result.getInt(\"powerusage\");\n list.add(val);\n }\n return list;\n }\n catch(Exception e) {\n return null;\n }\n }", "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 }", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "public BigDecimal getMoneyPaidForYear(int year) {\n if (year == endDate.getYear()) {\n return moneyPaid.subtract(prevYearMoneyPaid);\n } else if (year == effectDate.getYear()) {\n return prevYearMoneyPaid;\n }\n return BigDecimal.ZERO;\n }", "@Test()\n public void testGetBiggestPerYear() {\n\tYear year = Year.of(2015);\n\tList<Expense> list = expenseManager.getBiggestPerYear(year);\n\tassertEquals(\"gas\", list.get(0).getName());\n }", "public Double calcMovieRentalPrice(Integer unitPrice, Integer numOfDays, Integer maxAge);", "private void calculationAndAddAgeCoefficient(Vehicle vehicle) {\n Calendar calendar = Calendar.getInstance();\n int nowYear = calendar.get(Calendar.YEAR);\n int yearOfManufacture;\n int differenceOfYears;\n\n if (vehicle.getYearOfManufacture() != null) {\n // Get year of manufacture\n if (vehicle.getYearOfManufacture().getDescription().equals(\"2003 і раніше\")) { // Change data at the beginning of the year!!!\n yearOfManufacture = 2003; // Change data at the beginning of the year!!!\n } else {\n yearOfManufacture = Integer.parseInt(vehicle.getYearOfManufacture().getDescription());\n }\n\n differenceOfYears = nowYear - yearOfManufacture;\n\n if (differenceOfYears <= 2) {\n vehicle.setAgeCoefficient(1);\n } else {\n vehicle.setAgeCoefficient(differenceOfYears - 1);\n }\n }\n }", "public static Map<LaunchServiceProvider, BigDecimal> getRevenuePerLspInYear(Collection<Launch> launches, int year){\n List<Launch> filteredLaunchList = launches.stream().filter(Launch -> Launch.getLaunchDate().getYear() == year).collect(Collectors.toList());\n Map<LaunchServiceProvider, BigDecimal> mapByLsp = new HashMap<>();\n for (Launch l : filteredLaunchList) {\n if (mapByLsp.containsKey(l.getLaunchServiceProvider())){\n BigDecimal bd = mapByLsp.get(l.getLaunchServiceProvider()).add(l.getPrice());\n mapByLsp.put(l.getLaunchServiceProvider(),bd);\n } else {\n BigDecimal tmp = l.getPrice();\n mapByLsp.put(l.getLaunchServiceProvider(),tmp);\n }\n }\n return mapByLsp;\n }", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(String year) {\n this.year = year;\n }", "public void calculateEmpWage(int empHrs){\n \tint totalWorkingDays = 1;\n\tint totalWorkingHours = 0;\n\t/*\n\t*varable empAttendance tells if emp is present '0' or absent '1' on that day of the month\n\t*/\n\tint empAttendance;\n\t/*\n\t*variable monthlyWage stores the monthly wage of the employee\n\t*/\n int monthlyWage = 0;\n\t/*\n\t*variable daysPresent keeps count of the no of days present for a month\n\t*/\n\t int daysPresent = 0;\n\t /*\n\t *variable hoursWorked keeps count of the no of hours worked in a month\n\t */\n\t int hoursWorked = 0;\n\n\t while(true){\n\t Random rand = new Random();\n empAttendance = rand.nextInt(2);\n if(empAttendance == 0){\n daysPresent += 1;\n System.out.println(\"Day \"+totalWorkingDays+\": Present\");\n monthlyWage += CompanyEmpWage.getempRate() * empHrs;\n hoursWorked += empHrs;\n }\n else{\n System.out.println(\"Day \"+totalWorkingDays+\": Absent\");\n monthlyWage += 0;\n hoursWorked += 0;\n }\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays() || !(totalWorkingHours < CompanyEmpWage.getmaxHrs())){\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays()){\n System.out.println(CompanyEmpWage.getnumOfDays()+\" days are over!\");\n break;\n }\n else{\n System.out.println(CompanyEmpWage.getmaxHrs()+\" hours reached!\");\n break;\n }\n }\n\ttotalWorkingDays++;\n \ttotalWorkingHours += empHrs;\n }\n System.out.println(\"Company: \"+CompanyEmpWage.getcompName()+\"\\nNo of days worked out of \"+CompanyEmpWage.getnumOfDays()+\" days: \"+daysPresent+\"\\nNo of hours worked out of \"+CompanyEmpWage.getmaxHrs()+\" hours: \"+hoursWorked+\"\\nSalary for the month: \"+monthlyWage);\n }", "public int getEnergy(){\n\t\tEnumeration students = table.keys(); \n\t\tint totalEnergy=0;\n\t\tHashtable<String,String> assignedProjects= new Hashtable<String,String>();\n\t\tint totalpenalties =0;\n\t while(students.hasMoreElements()) {\n\t CandidateAssignment cand = table.get((String) students.nextElement()); \n\t totalEnergy+=cand.getEnergy();\n\t \n\t String project = cand.getAssignedProject(); \n\t if(!assignedProjects.containsKey(project)){\n\t \t assignedProjects.put(project, project);\n\t }else{\n\t \t totalpenalties+=penalty; \n\t }\n\t }\n\t\treturn totalEnergy+ totalpenalties;\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 this.year = year;\n }", "public static void calculateDailyEmpWage()\n {\n\t\tint salary = 0;\n\t\tif(isPresent()){\n\t\t\tint empRatePerHr = 20;\n int PartTimeHrs = 4;\n salary = PartTimeHrs * empRatePerHr;\n\t\t\tSystem.out.println(\"Daily Part time Wage:\" +salary);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Daily Wage:\" +salary);\n\t\t}\n }", "@Test\n public void testSpecificYear() {\n context = new MockServletContext();\n context.setInitParameter(ConfigService.MESHRDF_YEAR, \"2018\");\n context.setInitParameter(ConfigService.MESHRDF_INTERIM, \"true\");\n configService = new ConfigServiceImpl(context);\n\n ValidYears years = configService.getValidYears();\n\n assertThat(years.getCurrent(), equalTo(2018));\n assertThat(years.getInterim(), equalTo(2019));\n }", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}", "public static List getAlumniByYear(int year)\n { \n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"from Alumni_data where passOutYear=:year\").setInteger(\"year\", year).list();\n session.close();\n return li;\n }", "public void setYear(int year) {\r\n this.year = year;\r\n }", "public void setYear(int year)\n {\n this.year = year;\n }", "public double runPrice(int age) {\n\t\t// PriceCRUD for calculating price later\n\t\tPriceCRUD<CinemaClassPrice> cinemaClassCRUD = new PriceCRUD<>(CinemaClassPrice.class);\n\t\tPriceCRUD<MovieTypePrice> movieTypeCRUD = new PriceCRUD<>(MovieTypePrice.class);\n\t\tPriceCRUD<DayPrice> dayCRUD = new PriceCRUD<>(DayPrice.class);\n\t\tPriceCRUD<AgePrice> ageCRUD = new PriceCRUD<>(AgePrice.class);\n\t\t\n\t\t// Get cinema class price\n\t\tCinemaCRUD<Cinema> cinemaCRUD = new CinemaCRUD<Cinema>(Cinema.class, Showtimes.getCineplexId());\n\t\tCinemaClass cinemaClass = cinemaCRUD.getCinemaType(this.showtimes.getCinemaId());\n\t\tCinemaClassPrice cinemaClassPrice = cinemaClassCRUD.getElementPrice(cinemaClass);\n\t\t\n\t\t// Get movie type price\n\t\tMovieCRUD<Movie> movieCRUD = new MovieCRUD<>(Movie.class);\n\t\tMovieType movieType = movieCRUD.getMovieById(this.showtimes.getMovieId()).getType();\n\t\tMovieTypePrice movieTypePrice = movieTypeCRUD.getElementPrice(movieType);\n\t\t\n\t\t// Get Day type price\n\t\tDayType dayType = DateTimeHelper.getDayType(this.showtimes.getDate());\n\t\tDayPrice dayTypePrice = dayCRUD.getElementPrice(dayType);\n\t\t\n\t\t// Get Age Range Price\n\t\tAgePrice agePrice = ageCRUD.getElementPrice(age);\n\t\t\n\t\t// Print receipt for 1 ticket\n\t\tSystem.out.println(cinemaClassPrice.toString());\n\t\tSystem.out.println(movieTypePrice.toString());\n\t\tSystem.out.println(dayTypePrice.toString());\n\t\tSystem.out.println(agePrice.toString());\n\t\tdouble ticketPrice = cinemaClassPrice.getPrice()+movieTypePrice.getPrice()+dayTypePrice.getPrice()+agePrice.getPrice();\n\t\tSystem.out.println(\"Ticket price: \"+ticketPrice);\n\t\t\n\t\treturn ticketPrice;\n\t}", "public void setEyear(Date eyear) {\n this.eyear = eyear;\n }", "public BigDecimal getPriorYear() {\n return priorYear;\n }", "@Path(\"{id_company}/{year}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public FinancialReport returnValues(@PathParam(\"id_company\") String id_company, @PathParam(\"year\") int year) throws SQLException {\r\n FinancialReport finreport;\r\n DBConnect db=new DBConnect();\r\n finreport=db.calculateValues(id_company, year);\r\n return finreport;\r\n \r\n \r\n }", "public Date getEyear() {\n return eyear;\n }", "protected static Electronics goodElectronicValues(String eidField, String enameField, String eyearField, String epriceField, String emakerField) throws Exception {\n Electronics myElec;\n String[] ID, strPrice;\n String Name;\n int Year;\n double Price;\n\n try {\n ID = eidField.split(\"\\\\s+\");\n if (ID.length > 1 || ID[0].equals(\"\")) {\n throw new Exception(\"ERROR: The ID must be entered\\n\");\n }\n if (ID[0].length() != 6) {\n throw new Exception(\"ERROR: ID must be 6 digits\\n\");\n }\n if (!(ID[0].matches(\"[0-9]+\"))) {\n throw new Exception(\"ERROR: ID must only contain numbers\");\n }\n Name = enameField;\n if (Name.equals(\"\")) {\n throw new Exception(\"ERROR: Name of product must be entered\\n\");\n }\n if (eyearField.equals(\"\") || eyearField.length() != 4) {\n throw new Exception(\"ERROR: Year of product must be entered\\n\");\n } else {\n Year = Integer.parseInt(eyearField);\n if (Year > 9999 || Year < 1000) {\n throw new Exception(\"ERROR: Year must be between 1000 and 9999 years\");\n }\n }\n\n strPrice = epriceField.split(\"\\\\s+\");\n if (strPrice.length > 1 || strPrice[0].equals(\"\")) {\n Price = 0;\n } else {\n Price = Double.parseDouble(strPrice[0]);\n }\n\n myElec = new Electronics(ID[0], Name, Year, Price, emakerField);\n ProductGUI.Display(\"elec fields are good\\n\");\n return myElec;\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n\n }", "public void setYear(String year) {\n\t\tthis.year = year;\n\t}", "public double calculateCommercialValue (){\n\t\t\n\t\treturn commericalValue;\n\t\t\n\t\n\t}", "@Override\n public float calDonation(int year) {\n if(this.getDate().getYear() == year){\n return this.getAmount();\n }\n return 0;\n }", "public Employee getHighestRevenueEmployee() {\n\t\tEmployee employee = new Employee();\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\n\t\t\t\t\t\"SELECT R.CustRepId, P.FirstName, P.LastName, E.Email, Count(*) \" +\n\t\t\t\t\t\"FROM Person P, Rental R, Employee E \" +\n\t\t\t\t\t\"WHERE P.SSN = R.CustRepId AND E.SSN = P.SSN \"+\n\t\t\t\t\t\"group by P.FirstName, P.LastName \" +\n\t\t\t\t\t\"ORDER BY COUNT(*) DESC; \"\n\t\t\t\t\t);\n\t\t\trs.next();\n\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"CustRepId\")));\n\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\n\t\treturn employee;\n\t\t\n\t}", "int getYear();", "public double getYear() {\n return year;\n }", "@Override\n public double computeProfitUsingRisk() {\n return (getVehiclePerformance() / getVehiclePrice()) * evaluateRisk();\n }", "public double getProfit(){\n return getPrice() * PROFIT_IN_PERCENTS / 100;\n }", "private static void wageComputation() {\n Random random = new Random();\n while ( totalEmpHrs < MAX_HRS_IN_MONTHS && totalWorkingDays < numOfWorkingDays ) {\n int empCheck = (int) Math.floor(Math.random() * 10) % 3;\n switch (empCheck) {\n case IS_FULL_TIME:\n empHrs = 8;\n break;\n case IS_PART_TIME:\n empHrs = 4;\n break;\n default:\n }\n totalEmpHrs = totalEmpHrs + empHrs;\n }\n\n int empWage = totalEmpHrs * EMP_RATE_PER_HOUR;\n System.out.println(\"Employee Wage is : \" + empWage);\n }", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner myScan = new Scanner(System.in);\r\n\t\tString strAns, empName;\r\n\t\tdouble sumSalaries=0;\r\n\t\tboolean found=false;\r\n\t\tDeptEmployee[ ] department = new DeptEmployee [6];\r\n\t\tGregorianCalendar hired;\r\n\t\t\r\n\t\t//Professors\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tProfessor prof1 = new Professor(\"Joseph\",200000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,5,1);\r\n\t\tProfessor prof2 = new Professor(\"Carlos\",150000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,6,1);\r\n\t\tProfessor prof3 = new Professor(\"Mauricio\",100000,hired.getTime(),10);\r\n\t\t\r\n\t\t//Secretaries\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tSecretary sec1 = new Secretary(\"Lina\",50000,hired.getTime(),200);\r\n\t\thired = new GregorianCalendar(1998,5,1);\r\n\t\tSecretary sec2 = new Secretary(\"Lucy\",55000,hired.getTime(),200);\r\n\t\t\r\n\t\t//Administrators\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tAdministrator admin1 = new Administrator(\"Monica\",180,hired.getTime(),160);\r\n\t\t\r\n\t\t//Populate array\r\n\t\tdepartment[0] = prof1;\r\n\t\tdepartment[1] = prof2;\r\n\t\tdepartment[2] = prof3;\r\n\t\tdepartment[3] = sec1;\r\n\t\tdepartment[4] = sec2;\r\n\t\tdepartment[5] = admin1;\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to see the sum of salaries in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tfor (DeptEmployee e : department) \r\n\t\t\t\tsumSalaries += e.computeSalary();\r\n\t\t\tSystem.out.println(\"Sum of department salaries is: \"+sumSalaries);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to locate an employee in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tSystem.out.println(\"Enter the employee name:\");\r\n\t\t\tstrAns = myScan.next();\r\n\t\t\t\r\n\t\t\tfor (DeptEmployee e : department) {\r\n\t\t\t\tempName=e.getName();\r\n\t\t\t\tif (strAns.equals(e.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tSystem.out.printf(\"The employee %s doesn't exists in department\",strAns);\r\n\t\t\t}\r\n\t }\r\n\t}", "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 static final int getReleaseYear() { return 2019; }", "public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}", "public int getYear() { return year; }", "public int getYear() { return year; }", "protected double getEmpPrimaryJobRate(WBData wbData) throws Exception {\n\n \tList jobList = wbData.getEmployeeJobList();\n \tEmployeeJobData jobData = null;\n \tEmployeeJobData primaryJobData = null;\n \tIterator i = null;\n \tdouble primaryJobRate = 0;\n\n \t// Find the primary job.\n \tif (jobList != null) {\n \t\ti = jobList.iterator();\n \t\twhile (i.hasNext()) {\n \t\t\tjobData = (EmployeeJobData) i.next();\n \t\t\tif (jobData.getEmpjobRank() == 1){\n\n \t\t\t\t// If a primary job was already found, then throw an exeception.\n \t\t\t\tif (primaryJobData != null) {\n \t\t\t\t\tthrow new NestedRuntimeException(\"Multiple Primary Job Rates exist.\");\n \t\t\t\t} else {\n \t\t\t\t\tprimaryJobData = jobData;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n\n \t// Find the job rate for the primary job.\n \tif (primaryJobData != null) {\n \t\tprimaryJobRate = wbData.getJobRate(primaryJobData.getJobId(), primaryJobData.getEmpjobRateIndex(), wbData.getWrksWorkDate());\n \t}\n\n \treturn primaryJobRate;\n }", "int computeNutritionalScore(Map<String, Object> product);", "public int getYear(){\n\t return this.year;\n }", "Integer getTenYear();", "public int employeeSalary(String employeeName) {\n\n int actualSalaryOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n actualSalaryOfEmployee = Integer.valueOf(salaryField);\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The salary earned by this employee is: \");\n return actualSalaryOfEmployee;\n\n }", "@Test()\n public void testGetForecastPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2016, 8);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(3795.75, forecast, 0.01);\n }", "public double getPrice(Movie movie, double time);", "public void setYear(int Year) {\n\t this.year= Year;\n\t}", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"#p0+'-'+#p1\")\n public AccountingPeriod getByPeriod(String periodCode, Integer fiscalYear) {\n // build up the hashmap to find the accounting period\n HashMap<String,Object> keys = new HashMap<String,Object>();\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, periodCode);\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, fiscalYear);\n AccountingPeriod acctPeriod = businessObjectService.findByPrimaryKey(AccountingPeriod.class, keys);\n return acctPeriod;\n }", "public int getIndepYear() {\n\n return indepYear;\n }", "public abstract double experience();", "public BigDecimal getCurrentYear() {\n return currentYear;\n }", "public int getYear() {\r\n return this.year;\r\n }", "@Override\r\n\tpublic List<GetSalesOrderByYear> getSalesOrdersByYear(int year) {\n\t\tList<Object[]> list=null;\r\n\t\tList<GetSalesOrderByYear> byYears=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlist=boardDao.getSalesOrdersByYear(year);\r\n\t\t\tbyYears=new ArrayList<GetSalesOrderByYear>();\r\n\t\t\tIterator<Object[]> iterator=list.iterator();\r\n\t\t\twhile(iterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tObject[] objects=(Object[])iterator.next();\r\n\t\t\t\tGetSalesOrderByYear salesOrderByYear=new GetSalesOrderByYear();\r\n\t\t\t\tsalesOrderByYear.setMaterial((String)objects[0]);\r\n\t\t\t\tsalesOrderByYear.setMatpct(Float.valueOf((String)objects[1]));\r\n\t\t\t\tbyYears.add(salesOrderByYear);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn byYears;\r\n\t}", "public List<Product> findProductIncreaseMoreThan100() {\n\t\tString hql = \"select prod from Product prod join prod.prices prc where (prc.startDate in (select min(pr.startDate) from Product p join p.prices pr where p.id=prod.id) and (prc.price*2<prod.price))\";\n\t\tQuery query = this.sessionFactory.getCurrentSession().createQuery(hql);\n\t\tList<Product> products = query.getResultList();\n//\t\tfor (Product p : products) {\n//\t\t\tSystem.out.println(p.getName()+\" - \"+p.getPrice()+\" - \"+p.getId()); \n//\t\t}\n return products;\n\t}", "double getTotalProfit();", "public void setYear(int year) {\n\tthis.year = year;\n}", "public static ArrayList<Integer> getYearlyWaterUsage() {\n try {\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"TrafalgarLaw18\");\n ResultSet result = connection.createStatement().executeQuery(\"select * from public.yearlyevaluation;\");\n connection.close();\n ArrayList<Integer> list = new ArrayList<Integer>();\n while(result.next()) {\n int val = result.getInt(\"waterusage\");\n list.add(val);\n }\n return list;\n }\n catch(Exception e) {\n return null;\n }\n }", "@Test()\n public void testGetCurrentValuePerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 5);\n\tdouble currentValue = expenseManager.getCurrentValuePerMonth(yearMonth);\n\tassertEquals(615, currentValue, 0);\n }", "public int getYear()\n {\n return year;\n }", "public Employee getPurchaseEmployee() {\n Discount[] txnDiscounts = compositePOSTransaction.getDiscountsArray();\n if (txnDiscounts != null && txnDiscounts.length > 0) {\n for (int i = 0; i < txnDiscounts.length; i++) {\n if (txnDiscounts[i] instanceof CMSEmployeeDiscount) {\n return ((CMSEmployeeDiscount)txnDiscounts[i]).getEmployee();\n }\n }\n }\n return null;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to Employee Wage Computation Program\");\n\t\tEmployee obj1 = new Employee(20,\"Dmart\");\n\t\tEmployee obj = new Employee();\n\t\tobj.isFullTimePresent = 1;\n\t\tobj.wagePerHr = 20;\n\t\tobj.totalSalary = 0;\n\t\tobj.wagesTillCondition();\n\t\tSystem.out.print(\"Total Salary : \");\n\t\tSystem.out.println(obj.totalSalary);\n\t\tSystem.out.println(obj.totalHrs);\n\t\tSystem.out.println(obj.totalDays);\n\t}", "public Integer getYear() {\r\n return year;\r\n }" ]
[ "0.6581328", "0.56662756", "0.5642289", "0.5600063", "0.5565132", "0.5383176", "0.5377207", "0.5329591", "0.5328746", "0.52880734", "0.5254564", "0.5252351", "0.5219738", "0.5217293", "0.5156427", "0.51513416", "0.5147357", "0.51369745", "0.51365435", "0.5127229", "0.5118373", "0.5090064", "0.50700456", "0.50666994", "0.5062874", "0.50440955", "0.49669266", "0.49311483", "0.49132642", "0.49084026", "0.49075007", "0.49075007", "0.49075007", "0.4903584", "0.49019256", "0.48998344", "0.48983392", "0.4897555", "0.48867467", "0.4882366", "0.4882366", "0.48797148", "0.48733962", "0.4870032", "0.4870032", "0.48489267", "0.4847622", "0.48387742", "0.48375356", "0.4835939", "0.4828523", "0.48208302", "0.4820787", "0.4817875", "0.4814415", "0.4813586", "0.48112825", "0.48108035", "0.47976622", "0.47972152", "0.47956085", "0.478808", "0.47840944", "0.47790122", "0.47774813", "0.47654125", "0.4759865", "0.47515142", "0.47498205", "0.47453168", "0.4745011", "0.4745011", "0.4743219", "0.47421092", "0.47281224", "0.47281224", "0.47186208", "0.4697623", "0.46959618", "0.46954328", "0.46850303", "0.4681441", "0.46808916", "0.4679609", "0.4679542", "0.46779028", "0.46741068", "0.46734554", "0.46669328", "0.46594867", "0.4643933", "0.46435025", "0.4641693", "0.46378714", "0.46365097", "0.4636218", "0.46223572", "0.46220332", "0.462119", "0.4619035" ]
0.69530153
0
This method is to find all employee productivity for given year.
@RequestMapping(value = "/getAllEmployeeAnnualProductivity", method = RequestMethod.POST) public @ResponseBody String getAllEmployeeAnnualProductivity(@RequestParam("year") int year) { logger.info("inside ReportGenerationController getAllEmployeeAnnualProductivity()"); logger.info("data received: year: " + year); return reportGenerationService.getAllEmployeeAnnualProductivity(year); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/getEmployeeAnnualProductivity\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeeAnnualProductivity(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"year\") int year) {\r\n logger.info(\"inside ReportGenerationController getEmployeeAnnualProductivity()\");\r\n logger.info(\"data received: employee id: \" + employeeId + \" year: \" + year);\r\n\r\n return reportGenerationService.getEmployeeAnnualProductivity(employeeId, year);\r\n\r\n }", "protected static void searchByYear(int yearLow, int yearHigh) {\n for (Product element : productList) {\n System.out.println(\"lowerYear: \" + yearLow);\n System.out.println(\"upperYear: \" + yearHigh);\n if (element.productYearMatch(yearLow, yearHigh)) // if product years match, the product will be printed\n {\n System.out.println(\"\");\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n }\n }\n }", "@Query(value = \"select * from patent_details order by year asc;\", nativeQuery = true)\n public Iterable<PatentDetails> findYearwisePatentDetails();", "@Override\n public List<Vehicle> findByYear(BigDecimal year) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles.year_model\", Operation.EQ, year));\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "public double[] getPriceStats(String year){\n for (int i = 0; i < priceMonthCounter.length; i++) priceMonthCounter[i]=0;\n \n for (TransferImpl movement : MovementsController.getInstanceOf().getMovements()) {\n \t// Convert the util.Date to LocalDate\n \tLocalDate date = movement.getLeavingDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t// Filter movements by year\n \t// Filter movements by year\n\t if(date.getYear()==Integer.parseInt(year)){\n\t \tint month = date.getMonthValue() - 1; \n\t \n\t \tswitch (movement.getType().toLowerCase()) {\n\t \tcase \"return\":\n\t \t\tintMonthCounter[month]-=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \tcase \"sold\":\n\t \t\tintMonthCounter[month]+=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \t}\n\t }\n\t \n\t for(int i=0; i<priceMonthCounter.length;i++) \n\t \tpriceMonthCounter[i] = Double.parseDouble(this.convertPriceToString(intMonthCounter[i]));\n }\n \n return priceMonthCounter;\n\t}", "@Override\n public List getAttendanceDetails(int compCode, int year ) throws ApplicationException {\n long begin = System.nanoTime();\n HrAttendanceDetailsDAO hrAttendanceDao = new HrAttendanceDetailsDAO(em);\n List attendanceList = new ArrayList();\n try {\n attendanceList = hrAttendanceDao.getAttenDataByComCodeAndCurrentYr(compCode, year);\n } catch (Exception e) {\n logger.error(\"Exception occured while executing method getAttendanceDetails()\", e);\n throw new ApplicationException(e.getMessage());\n// throw new ApplicationException(new ExceptionCode(ExceptionCode.SYSTEM_EXCEPTION_OCCURED,\n// \"System exception has occured\"));\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"Execution time for getAttendanceDetails is \" + (System.nanoTime() - begin) * 0.000000001 + \" seconds\");\n }\n return attendanceList;\n }", "public static List getAlumniByYear(int year)\n { \n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"from Alumni_data where passOutYear=:year\").setInteger(\"year\", year).list();\n session.close();\n return li;\n }", "public static ArrayList<Integer> getYearlyPowerUsage() {\n try {\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"TrafalgarLaw18\");\n ResultSet result = connection.createStatement().executeQuery(\"select * from public.yearlyevaluation;\");\n connection.close();\n ArrayList<Integer> list = new ArrayList<Integer>();\n while(result.next()) {\n int val = result.getInt(\"powerusage\");\n list.add(val);\n }\n return list;\n }\n catch(Exception e) {\n return null;\n }\n }", "@Override\r\n\tpublic List<GetSalesOrderByYear> getSalesOrdersByYear(int year) {\n\t\tList<Object[]> list=null;\r\n\t\tList<GetSalesOrderByYear> byYears=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlist=boardDao.getSalesOrdersByYear(year);\r\n\t\t\tbyYears=new ArrayList<GetSalesOrderByYear>();\r\n\t\t\tIterator<Object[]> iterator=list.iterator();\r\n\t\t\twhile(iterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tObject[] objects=(Object[])iterator.next();\r\n\t\t\t\tGetSalesOrderByYear salesOrderByYear=new GetSalesOrderByYear();\r\n\t\t\t\tsalesOrderByYear.setMaterial((String)objects[0]);\r\n\t\t\t\tsalesOrderByYear.setMatpct(Float.valueOf((String)objects[1]));\r\n\t\t\t\tbyYears.add(salesOrderByYear);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn byYears;\r\n\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public int getTravelsInYear(String year) {\n EntityManager em = getEntityManager();\n Calendar initDate = Calendar.getInstance();\n initDate.set(Calendar.DAY_OF_MONTH, 31);\n initDate.set(Calendar.MONTH, 11);\n initDate.set(Calendar.YEAR, Integer.parseInt(year)-1);\n Calendar endDate = Calendar.getInstance();\n endDate.set(Calendar.DAY_OF_MONTH, 1);\n endDate.set(Calendar.MONTH, 0);\n endDate.set(Calendar.YEAR, Integer.parseInt(year)+1);\n return ((Number) em.createNamedQuery(\"Viaje.getYearTravels\")\n .setParameter(\"initDate\", initDate.getTime())\n .setParameter(\"endDate\", endDate.getTime()).getSingleResult()).intValue();\n }", "@Test()\n public void testGetForecastPerYear() {\n\tYear year = Year.of(2016);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(11030.25, forecast, 0.01);\n }", "@Path(\"{id_company}/{year}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public FinancialReport returnValues(@PathParam(\"id_company\") String id_company, @PathParam(\"year\") int year) throws SQLException {\r\n FinancialReport finreport;\r\n DBConnect db=new DBConnect();\r\n finreport=db.calculateValues(id_company, year);\r\n return finreport;\r\n \r\n \r\n }", "protected static void searchByIdYear(String Id, int yearLow, int yearHigh) {\n System.out.println(\"lowerYear: \" + yearLow);\n System.out.println(\"upperYear: \" + yearHigh);\n for (Product element : productList) {\n if (element.productIdMatch(Id) && element.productYearMatch(yearLow, yearHigh)) {\n System.out.println(\" \");\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString() + \"\\n\");\n }\n\n }\n }", "private AbsentYear findAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = absYearRepo.findByEmployeeAndYear(emp, (short)startDate.getYear());\n\t\tif(absentYear == null) {\n\t\t\tabsentYear = createAbsentYear(emp, startDate);\n\t\t}\n\t\treturn absentYear;\n\t}", "public List<Product> findProductIncreaseMoreThan100() {\n\t\tString hql = \"select prod from Product prod join prod.prices prc where (prc.startDate in (select min(pr.startDate) from Product p join p.prices pr where p.id=prod.id) and (prc.price*2<prod.price))\";\n\t\tQuery query = this.sessionFactory.getCurrentSession().createQuery(hql);\n\t\tList<Product> products = query.getResultList();\n//\t\tfor (Product p : products) {\n//\t\t\tSystem.out.println(p.getName()+\" - \"+p.getPrice()+\" - \"+p.getId()); \n//\t\t}\n return products;\n\t}", "@GetMapping(\"/allHospital\")\n public Map<String,List<Integer>> allHospital(String year){\n return service.allHospital(year);\n }", "public static ArrayList<Integer> getYearlyWaterUsage() {\n try {\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"TrafalgarLaw18\");\n ResultSet result = connection.createStatement().executeQuery(\"select * from public.yearlyevaluation;\");\n connection.close();\n ArrayList<Integer> list = new ArrayList<Integer>();\n while(result.next()) {\n int val = result.getInt(\"waterusage\");\n list.add(val);\n }\n return list;\n }\n catch(Exception e) {\n return null;\n }\n }", "List<ApplicantDetailsResponse> getAllApplicantsByYearsOfExperienceAndSkill(String skill, Integer yearsOfExperience)\r\n\t\t\tthrows ServiceException;", "public List<Integer> getSpPeriodYear() {\n\t\tint maxTerm = product.getMaxTerm();\n\t\tint minTerm = product.getMinTerm();\n\n\t\tList<Integer> lists = new ArrayList<Integer>();\n\t\tfor (int i = minTerm; i <= maxTerm; i++) {\n\t\t\tlists.add(i);\n\t\t}\n\t\treturn lists;\n\t}", "public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "public static Map<LaunchServiceProvider, BigDecimal> getRevenuePerLspInYear(Collection<Launch> launches, int year){\n List<Launch> filteredLaunchList = launches.stream().filter(Launch -> Launch.getLaunchDate().getYear() == year).collect(Collectors.toList());\n Map<LaunchServiceProvider, BigDecimal> mapByLsp = new HashMap<>();\n for (Launch l : filteredLaunchList) {\n if (mapByLsp.containsKey(l.getLaunchServiceProvider())){\n BigDecimal bd = mapByLsp.get(l.getLaunchServiceProvider()).add(l.getPrice());\n mapByLsp.put(l.getLaunchServiceProvider(),bd);\n } else {\n BigDecimal tmp = l.getPrice();\n mapByLsp.put(l.getLaunchServiceProvider(),tmp);\n }\n }\n return mapByLsp;\n }", "private ArrayList<Event> getAcademicYearEvents(ArrayList<Event> semesterList, int year) throws PacException {\n ArrayList<Event> yearList = new ArrayList<>();\n for (Event event : semesterList) {\n if (event.getYear().equals(year)) {\n yearList.add(event);\n }\n }\n if (yearList.isEmpty()) {\n throw new PacException(EMPTY_YEAR_LIST_ERROR_MESSAGE);\n }\n return yearList;\n }", "public List<CourseProfit> getCourseProfit(Date startTime, Date endTime) {\n\t\treturn courseSelectMapper.getCourseProfit(startTime, endTime);\r\n\t}", "@Override\n\tpublic Set<Person> getfindByBirthdateYear(int year) {\n\t\treturn null;\n\t}", "public List<MonthlyRecord> getMonthlyExpense(int year) throws SQLException {\n\t\treturn getMonthly(year, \"Expense\");\n\t}", "public static double calculateEmployeeBonus(int employeeSalaryForBenefits, int numberOfYearsWithCompany, String employeePerformance) {\n double total = 0;\n\n try {\n Scanner stdin = new Scanner(System.in);\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n numberOfYearsWithCompany = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if (Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0])) {\n numberOfYearsWithCompany--;\n }\n\n System.out.println(\"Please enter this year's performance, as indicated by HR: \");\n employeePerformance = stdin.nextLine();\n stdin.close();\n\n if (numberOfYearsWithCompany >= 1) {\n if (employeePerformance.equals(\"Excellent\")) {\n total = (employeeSalaryForBenefits * 0.15);\n } else if (employeePerformance.equals(\"Good\")) {\n total = (employeeSalaryForBenefits * 0.10);\n } else if (employeePerformance.equals(\"Average\")) {\n total = (employeeSalaryForBenefits * 0.05);\n } else if (employeePerformance.equals(\"Bad\")) {\n total = 0;\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n System.out.println(\"This will be the yearly bonus for this Employee's performance: \" + total);\n return total;\n }", "public YearProfit(){}", "public List getUserVacationHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n if (hireDateStart == null) {\n hireDateStart = new Date();\n }\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Vacation\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "@Query(value = \"select year as Year, count(patent_id) as Count from patent_details group by year order by year asc\", nativeQuery = true)\n public List<Object[]>findPatentYearwiseCount();", "public List<Employee> findEmployeesForService(LocalDate date, Set<EmployeeSkill> skills) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n Set<EmployeeSkill> employeeSkills = skills;\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n Set<EmployeeSkill> intersectionSkills = new HashSet<>();\n intersectionSkills.addAll(employeeSkills);\n intersectionSkills.retainAll(employee.getSkills());\n\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek) && (intersectionSkills.size() == employeeSkills.size())) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "private AbsentYear createAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = new AbsentYear();\n\t\tabsentYear.setEmployee(emp);\n\t\tabsentYear.setYear((short)startDate.getYear());\n\t\tabsYearRepo.save(absentYear);\n\t\treturn absentYear;\n\t}", "public EmployeeMain() {\n employeeSalary_2015 = new ArrayList<Employee>();\n employeeSalary_2014 = new ArrayList<Employee>();\n }", "public List getAllUserAbscencesForAYear(int currentYear) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n\n query = session.createQuery(\"select userabscence from app.user.UserAbscence userabscence where \"\n + \" userabscence.abscence_date>= str_to_date('1/1/\" + currentYear\n + \"','%d/%m/%Y') and userabscence.abscence_date< str_to_date('1/1/\" + (currentYear + 2) + \"','%d/%m/%Y') order by userabscence.abscence_date\");\n return query.list();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void setEyear(Date eyear) {\n this.eyear = eyear;\n }", "public List getLocationAbscences(int currentYear) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n\n query = session.createQuery(\"select userabscence from app.user.UserAbscence userabscence where userabscence.abscence_date>= str_to_date('1/1/\" + currentYear\n + \"','%d/%m/%Y') and userabscence.abscence_date< str_to_date('1/1/\" + (currentYear + 2) + \"','%d/%m/%Y') order by userabscence.abscence_date\");\n return query.list();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\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 Double calculateMatchingExperience(Long candidateExpYears, Long companyExpYears) {\n try {\n if (Objects.equals(candidateExpYears, companyExpYears)) {\n return (double) 100;\n } else if (companyExpYears - 1 == candidateExpYears || companyExpYears + 1 == candidateExpYears) {\n return (double) 50;\n } else return (double) 0;\n } catch (Exception ex) {\n logger.error(\"Candidate Experience Years or Company Experience Years cannot be null ||\" + ex.getMessage());\n throw new IllegalArgumentException(\"Wrong Arguments\");\n }\n }", "public static List getAlumniByYear(String[] yearList)\n { \n int i;\n String s=\"from Alumni_data where passOutYear in (\";\n for(i=0;i<(yearList.length)-1;i++)\n {\n s+=yearList[i]+\",\"; \n } \n s+=yearList[i]+\")\"; \n System.out.print(\"\\n\\n\\n\\n******************************************\");\n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(s).list();\n session.close();\n return li;\n }", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducations( @BeanParam EducationBeanParam params ) throws ForbiddenException, BadRequestException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning all Educations by executing EducationResource.getEducations() method of REST API\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Education> educations = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n // get all educations filtered by given query params\n\n if( RESTToolkit.isSet(params.getKeywords()) ) {\n if( RESTToolkit.isSet(params.getDegrees()) || RESTToolkit.isSet(params.getFaculties()) || RESTToolkit.isSet(params.getSchools()) )\n throw new BadRequestException(\"Query params cannot include keywords and degrees, faculties or schools at the same time.\");\n\n // find only by keywords\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getKeywords(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n } else {\n // find by degrees, faculties, schools\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getDegrees(), params.getFaculties(), params.getSchools(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n }\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get all educations without filtering (eventually paginated)\n educations = new ResourceList<>( educationFacade.findAll(params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }", "public List<MonthlyRecord> getMonthlyIncome(int year) throws SQLException {\n\t\treturn getMonthly(year, \"Income\");\n\t}", "public List<RecepcionSero> getAllSerologias()throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Date date = new Date();\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(date);\n int year = calendar.get(Calendar.YEAR);\n Integer a = year;\n Query query = session.createQuery(\"from RecepcionSero s where year(s.fecreg) =:a order by s.fecreg desc\");\n query.setParameter(\"a\",a);\n return query.list();\n }", "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 }", "List<PriceRow> getPriceInformationsForProduct(ProductModel model);", "List<ChartBean> returnEmployeeCommunityServicesByDepartmentInstituteCenter();", "@Test()\n public void testGetExpensesByTypeAndYear() {\n\tString type = \"WEEKLY\";\n\tYear year = Year.of(2015);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndYear(type, year);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "@Override\n\t\t\t\tpublic Double getRevenuePerYearBykinder(int id, String year) {\n\t\t\t\t\treturn null;\n\t\t\t\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 this.year = year;\n }", "@Test\n public void testSpecificYear() {\n context = new MockServletContext();\n context.setInitParameter(ConfigService.MESHRDF_YEAR, \"2018\");\n context.setInitParameter(ConfigService.MESHRDF_INTERIM, \"true\");\n configService = new ConfigServiceImpl(context);\n\n ValidYears years = configService.getValidYears();\n\n assertThat(years.getCurrent(), equalTo(2018));\n assertThat(years.getInterim(), equalTo(2019));\n }", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(String year) {\n this.year = year;\n }", "public List<Refinery> getRefineries(int year);", "List<PriceInformation> getPriceForProduct(ProductModel product);", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "public void setYear(int year)\n {\n this.year = year;\n }", "@GetMapping(\"/school-years\")\n @Timed\n public List<SchoolYearDTO> getAllSchoolYears() {\n log.debug(\"REST request to get all SchoolYears\");\n return schoolYearService.findAll();\n }", "public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByIndustryCode(Integer... values) {\n return fetch(ProfileWorkexp.PROFILE_WORKEXP.INDUSTRY_CODE, values);\n }", "public void setYear(int year) {\r\n this.year = year;\r\n }", "java.util.List<hr.domain.ResumeDBOuterClass.Education> \n getEducationsList();", "@Override\n public ResultSet getCourses(String year, String season) throws SQLException {\n StringBuilder statement = new StringBuilder(75);\n int count = 0;\n statement.append(\"SELECT DISTINCT name FROM (\\n\");\n if (year != null && !year.isEmpty()) {\n count++;\n statement.append(\"SELECT * FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?)\");\n }\n if (season != null && !season.isEmpty()) {\n count++;\n if (statement.length() > 16) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT * FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?)\");\n }\n statement.append(\"\\n) AS course GROUP BY id HAVING count(*) = \").append(count).append(\";\");\n if (count == 0) {\n statement.setLength(0);\n statement.append(\"SELECT DISTINCT name FROM course\");\n }\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n return pstmt.executeQuery();\n }", "public Vehicle getYear(int year) {\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\tVehicle temp = vehicles.get(i);\n\n\t\t\tif (temp.getYear() == year) {\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public List<Integer> getByYearDay() {\n\t\treturn byYearDay;\n\t}", "public Date getEyear() {\n return eyear;\n }", "List<Employee> allEmpInfo();", "@Override\r\n\tpublic int fetchYearOfAnEmployee(int clockNum) {\n\t\treturn exemptTeamMemberDAO.fetchYearOfAnEmployee(clockNum);\r\n\t}", "public int getEnergy(){\n\t\tEnumeration students = table.keys(); \n\t\tint totalEnergy=0;\n\t\tHashtable<String,String> assignedProjects= new Hashtable<String,String>();\n\t\tint totalpenalties =0;\n\t while(students.hasMoreElements()) {\n\t CandidateAssignment cand = table.get((String) students.nextElement()); \n\t totalEnergy+=cand.getEnergy();\n\t \n\t String project = cand.getAssignedProject(); \n\t if(!assignedProjects.containsKey(project)){\n\t \t assignedProjects.put(project, project);\n\t }else{\n\t \t totalpenalties+=penalty; \n\t }\n\t }\n\t\treturn totalEnergy+ totalpenalties;\n\t}", "public void printAverageRatingsByYear(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n Filter f = new YearAfterFilter(2000); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void initSalarys() {\n\t\tList ls = departmentServiceImpl.findAll(Employees.class);\n\t\temployeesList = ls;\n\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t.collect(Collectors.toList());\n\t\ttotalSalary = new BigDecimal(0);\n\t\ttotalSalaryAfter = new BigDecimal(0);\n\n\t\tif (conId != null) {\n\t\t\temployeesList = new ArrayList<Employees>();\n\t\t\tcon = new Contracts();\n\t\t\tcon = (Contracts) departmentServiceImpl.findEntityById(Contracts.class, conId);\n\t\t\tList<ContractsEmployees> empIds = departmentServiceImpl.loadEmpByContractId(conId);\n\t\t\tfor (ContractsEmployees id : empIds) {\n\t\t\t\tEmployees emp = (Employees) departmentServiceImpl.findEntityById(Employees.class, id.getEmpId());\n\t\t\t\temployeesList.add(emp);\n\t\t\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\n\t\t}\n\n\t\tif (enterpriseAdd != null && enterpriseAdd.size() > 0) {\n\t\t\tList<Employees> empAllList = new ArrayList<>();\n\t\t\tfor (String entId : enterpriseAdd) {\n\t\t\t\t// enterpriseId = Integer.parseInt(entId);\n\t\t\t\tList<Employees> empList = employeesList.stream()\n\t\t\t\t\t\t.filter(fdet -> fdet.getEnterpriseId().equals(Integer.parseInt(entId)))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tif (empList != null && empList.size() > 0) {\n\t\t\t\t\tempAllList.addAll(empList);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temployeesList = empAllList;\n\t\t}\n\n//\t\tif (employeesList != null && employeesList.size() > 0) {\n//\t\t\tlistTotalSum = employeesList.stream().filter(fdet -> fdet.getSalary() != 0.0d)\n//\t\t\t\t\t.mapToDouble(fdet -> fdet.getSalary()).sum();\n//\t\t\ttotalSalary = new BigDecimal(listTotalSum).setScale(3, RoundingMode.HALF_UP);\n\t\t// totalSalaryAfter = totalSalary;\n//\t\t\tSystem.out.println(\"\" + totalSalary);\n//\n//\t\t}\n\t\tif (con != null) {\n\t\t\tloadSalaries();\n\t\t}\n\n//\t\tls = departmentServiceImpl.findAll(Enterprise.class);\n//\t\tenterpriseList = ls;\n\t}", "public LinkedList<Technology> getAllTechnologiesOfEmployee(Employee employee) {\n MysqlDbManager dbManager = MysqlDbManager.getInstance();\n LinkedList<Technology> technologies = new LinkedList<Technology>();\n int id = employee.getId();\n String SQL = \"SELECT * FROM technologies AS t, affair AS a WHERE a.idEmployee = \" + id + \" AND t.idTechnology = a.idTechnology\";\n try {\n ResultSet resultSet = dbManager.getResultSet(SQL);\n while (resultSet.next()) {\n technologies.add(new Technology(resultSet));\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException4: \" + e.toString());\n } finally {\n try {\n if (!dbManager.getResultSet().isClosed()) {\n dbManager.getResultSet().close();\n }\n if (!dbManager.getPreparedStatement().isClosed()) {\n dbManager.getPreparedStatement().close();\n }\n if (!dbManager.getConnection().isClosed()) {\n dbManager.getConnection().close();\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException: \" + e.toString());\n }\n }\n return technologies;\n }", "public Calendar calculateEasterForYear(int year) {\n int a = year % 4;\n int b = year % 7;\n int c = year % 19;\n int d = (19 * c + 15) % 30;\n int e = (2 * a + 4 * b - d + 34) % 7;\n int month = (int) Math.floor((d + e + 114) / 31);\n int day = ((d + e + 144) % 31) + 1;\n day++;\n\n Calendar instance = Calendar.getInstance();\n instance.set(Calendar.YEAR, year);\n instance.set(Calendar.MONTH, month);\n instance.set(Calendar.DAY_OF_MONTH, day);\n\n instance.add(Calendar.DAY_OF_MONTH, 13);\n\n return instance;\n }", "public List<Profit> getProfit(Date startTime, Date endTime) {\n\t\treturn profitMapper.getProfit(startTime, endTime);\r\n\t}", "public List<PieChartSector> getPieChart(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT Category, sum(Amount) / data.total from transaction\\n\" + \n\t\t\t\t\"CROSS JOIN (\\n\" + \n\t\t\t\t\" SELECT sum(Amount) as total from transaction \\n\" + \n\t\t\t\t\" WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\" and type = 'Expense'\\n\" + \n\t\t\t\t\") data\\n\" + \n\t\t\t\t\"WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\"and type = 'Expense'\\n\" + \n\t\t\t\t\"GROUP BY Category, data.total;\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setDate(3, Date.valueOf(from));\n\t\t\tstatement.setDate(4, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<PieChartSector> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\t\t\t\n\t\t\t\t\tlist.add(new PieChartSector(resultSet.getString(1), resultSet.getDouble(2)));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "public List<Employee> selectAllEmployee() {\n\n\t\t// using try-with-resources to avoid closing resources (boiler plate code)\n\t\tList<Employee> emp = new ArrayList<>();\n\t\t// Step 1: Establishing a Connection\n\t\ttry (Connection connection = dbconnection.getConnection();\n\n\t\t\t\t// Step 2:Create a statement using connection object\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_ALL_employe);) {\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t// Step 3: Execute the query or update query\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t\t\t// Step 4: Process the ResultSet object.\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString employeename = rs.getString(\"employeename\");\n\t\t\t\tString address = rs.getString(\"address\");\n\t\t\t\tint mobile = rs.getInt(\"mobile\");\n\t\t\t\tString position = rs.getString(\"position\");\n\t\t\t\tint Salary = rs.getInt(\"Salary\");\n\t\t\t\tString joineddate = rs.getString(\"joineddate\");\n\t\t\t\tString filename =rs.getString(\"filename\");\n\t\t\t\tString path = rs.getString(\"path\");\n\t\t\t\temp.add(new Employee(id, employeename, address, mobile, position, Salary, joineddate,filename,path));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tdbconnection.printSQLException(e);\n\t\t}\n\t\treturn emp;\n\t}", "protected static Electronics goodElectronicValues(String eidField, String enameField, String eyearField, String epriceField, String emakerField) throws Exception {\n Electronics myElec;\n String[] ID, strPrice;\n String Name;\n int Year;\n double Price;\n\n try {\n ID = eidField.split(\"\\\\s+\");\n if (ID.length > 1 || ID[0].equals(\"\")) {\n throw new Exception(\"ERROR: The ID must be entered\\n\");\n }\n if (ID[0].length() != 6) {\n throw new Exception(\"ERROR: ID must be 6 digits\\n\");\n }\n if (!(ID[0].matches(\"[0-9]+\"))) {\n throw new Exception(\"ERROR: ID must only contain numbers\");\n }\n Name = enameField;\n if (Name.equals(\"\")) {\n throw new Exception(\"ERROR: Name of product must be entered\\n\");\n }\n if (eyearField.equals(\"\") || eyearField.length() != 4) {\n throw new Exception(\"ERROR: Year of product must be entered\\n\");\n } else {\n Year = Integer.parseInt(eyearField);\n if (Year > 9999 || Year < 1000) {\n throw new Exception(\"ERROR: Year must be between 1000 and 9999 years\");\n }\n }\n\n strPrice = epriceField.split(\"\\\\s+\");\n if (strPrice.length > 1 || strPrice[0].equals(\"\")) {\n Price = 0;\n } else {\n Price = Double.parseDouble(strPrice[0]);\n }\n\n myElec = new Electronics(ID[0], Name, Year, Price, emakerField);\n ProductGUI.Display(\"elec fields are good\\n\");\n return myElec;\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n\n }", "public void setYear(String year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "int getExpYear(String bookingRef);", "public static double calculateEmployeePension(int employeeSalaryForBenefits) {\n double total = 0;\n try {\n Scanner stdin = new Scanner(System.in);\n\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n stdin.close();\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n Integer yearsEmployed = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if ( Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0]) ) {\n yearsEmployed--;\n }\n\n total = (((employeeSalaryForBenefits * 12) * 0.05) * yearsEmployed);\n\n\n\n\n System.out.println(\"Total pension to receive by employee based on \" + yearsEmployed + \" years with the company \" +\n \"(5% of yearly salary for each year, based on employee's monthly salary of $\" + employeeSalaryForBenefits + \"): \" + total);\n\n }\n catch (NumberFormatException e) {\n e.printStackTrace();\n }\n return total;\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "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(int year) \n\t{\n\t\tthis.year = year;\n\t}", "double getPricePerPerson();", "@GetMapping(value=\"/employee/{eId}\" , produces=\"application/json\")\n\n\tpublic List<Application> getEmpApplications(@PathVariable(\"eId\") int eId){\n\t\tEmployee emp = es.getEmployeeById(eId);\n\t\tList<Application> a = as.getAll();\n\t\tList<Application> empAppList = as.getBySpecies(emp.getSpecies());\n\t\t\n\n\t\t\n\t\t//Need to filter out second approval for the employee's own species\n\t\tfor (Application app : a){\n\t\t\t//if ((app.getStatus().equals(\"submitted\"))) {empAppList.add(app);}\n\t\t\t if ((app.getStatus().equals(\"secondApproval\"))&&(app.getPet().getBreed().getSpecies() != emp.getSpecies())) {\n\t\t\t\tempAppList.add(app);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn empAppList;\n\t}", "@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Employeearraylist> hs = new ArrayList<>();\n\t\ths.add(new Emp(\"Poornima\",1214,\"Guntur\",30000));\n\t\ths.add(new Emp(\"vaishnavi\",1215,\"banglore\",35000));\n\t\ths.add(new Emp(\"geetha\",1216,\"kolkata\",12000));\n\t\ths.add(new Emp(\"bhavi\",1217,\"hyd\",45000));\n\t\ths.add(new Emp(\"ravi\",1218,\"pune\",56000));\n\t\n\t\tCollections.sort(e, (e1, e2) -> {\n\n\t\t\treturn (e1.name).compareTo(e2.name);\n\t\t});\n\t\tfor (Employeearraylist employee : e) {\n\t\t\tSystem.out.println(employee);\n\t\t}\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tList<Integer> i = e.stream().filter(p -> p.salary > 70000).map(p -> p.salary).collect(Collectors.toList());\n\t\tSystem.out.println(\"salary greater than 70000\" + i);\n\t\tOptional<Integer> sal = e.stream().map(p -> p.salary).reduce((sum, salary) -> (sum + salary));\n\t\tSystem.out.println(\"sum of total employee salaries are\" + sal);\n\t\tlong se = e.stream().count();\n\t\tSystem.out.println(se);\n\n\t\t;\n\t}", "private void fillYearFields() {\n\n\t\tfor (int i = 1990; i <= 2100; i++) {\n\t\t\tyearFieldDf.addItem(i);\n\t\t\tyearFieldDt.addItem(i);\n\t\t}\n\t}", "public void fetchEmployeeDetailsByPromotionCode(EmpCredit empCredit, String promotionCode){\r\n\t\ttry {\r\n\t\t\t String empDetailQuery = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN , HRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME AS NAME,\" \r\n\t\t\t\t\t+ \" HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME,\"\r\n\t\t\t\t\t+ \" NVL(SALGRADE_TYPE,' ') ,SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID,\" \r\n\t\t\t\t\t+ \" HRMS_SALARY_MISC.GROSS_AMT,DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '), \"\r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'), NVL(CADRE_NAME,' '), HRMS_PROMOTION.PRO_GRADE, NVL(CTC,0)\" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_PROMOTION ON(HRMS_PROMOTION.EMP_CODE = HRMS_EMP_OFFC.EMP_ID AND HRMS_PROMOTION.PROM_CODE =\"+promotionCode+\")\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_PROMOTION.PRO_DESG)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_CENTER.CENTER_ID = HRMS_PROMOTION.PRO_BRANCH)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_PROMOTION.PRO_DEPT )\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_PROMOTION.PRO_GRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_SALGRADE_HDR.SALGRADE_CODE = HRMS_PROMOTION.PROM_SALGRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\";\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\r\n\t\t\t\tempCredit.setEmpToken(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpName(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][10]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][14]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][15]));\r\n\t\t\t\tempCredit.setCtcAmt(String.valueOf(empDetailObj[0][16]));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfetchIncrementPeriod(empCredit);\r\n\t}", "public static void main(String[] args) {\n\t\tScanner myScan = new Scanner(System.in);\r\n\t\tString strAns, empName;\r\n\t\tdouble sumSalaries=0;\r\n\t\tboolean found=false;\r\n\t\tDeptEmployee[ ] department = new DeptEmployee [6];\r\n\t\tGregorianCalendar hired;\r\n\t\t\r\n\t\t//Professors\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tProfessor prof1 = new Professor(\"Joseph\",200000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,5,1);\r\n\t\tProfessor prof2 = new Professor(\"Carlos\",150000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,6,1);\r\n\t\tProfessor prof3 = new Professor(\"Mauricio\",100000,hired.getTime(),10);\r\n\t\t\r\n\t\t//Secretaries\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tSecretary sec1 = new Secretary(\"Lina\",50000,hired.getTime(),200);\r\n\t\thired = new GregorianCalendar(1998,5,1);\r\n\t\tSecretary sec2 = new Secretary(\"Lucy\",55000,hired.getTime(),200);\r\n\t\t\r\n\t\t//Administrators\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tAdministrator admin1 = new Administrator(\"Monica\",180,hired.getTime(),160);\r\n\t\t\r\n\t\t//Populate array\r\n\t\tdepartment[0] = prof1;\r\n\t\tdepartment[1] = prof2;\r\n\t\tdepartment[2] = prof3;\r\n\t\tdepartment[3] = sec1;\r\n\t\tdepartment[4] = sec2;\r\n\t\tdepartment[5] = admin1;\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to see the sum of salaries in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tfor (DeptEmployee e : department) \r\n\t\t\t\tsumSalaries += e.computeSalary();\r\n\t\t\tSystem.out.println(\"Sum of department salaries is: \"+sumSalaries);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to locate an employee in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tSystem.out.println(\"Enter the employee name:\");\r\n\t\t\tstrAns = myScan.next();\r\n\t\t\t\r\n\t\t\tfor (DeptEmployee e : department) {\r\n\t\t\t\tempName=e.getName();\r\n\t\t\t\tif (strAns.equals(e.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tSystem.out.printf(\"The employee %s doesn't exists in department\",strAns);\r\n\t\t\t}\r\n\t }\r\n\t}", "@Override\n\tpublic List<Job> findpriceEducation(Job job) throws Exception {\n\t\treturn jobDao.findpriceEducation(job);\n\t}", "@WebMethod\n public List<Employee> getAllEmployeesByHireDate() {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rSet = stmt.executeQuery(\" select * from employees \\n\" + \n \" where months_between(sysdate,HIRE_DATE) > 200 \");\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }", "public List<AllYearTable> getAllAnnualList(AnnualReportForm myForm) {\n\t\tfloat cost_sum = 0;\n\t\t\tList<AllYearTable> l;\n\t\t\tif(myForm.getFrmCategoryId().equals(\"0\")){\n\t\t\t\t l= myAllYearTableDao.getFrmAllYearViewList(myForm.getFrmAnnualId());\n\t\t\t}\n\t\t\telse{\n\t\t\t\tl = myAllYearTableDao.getFrmAllYearAllCategoryViewList(myForm.getFrmAnnualId(),myForm.getFrmCategoryId());\n\t\t\t}\n\t\t\treturn l;\n\t\t\t\n\t\n\t\n\t\t}", "@Test()\n public void testGetForecastPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2016, 8);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(3795.75, forecast, 0.01);\n }", "public List getUserTravelHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Travel\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }" ]
[ "0.67308044", "0.5635767", "0.5605351", "0.5508091", "0.5437134", "0.53610617", "0.53575575", "0.5267591", "0.5258346", "0.5167309", "0.5109683", "0.50893015", "0.5081894", "0.50775063", "0.5068818", "0.5048682", "0.5019323", "0.5002555", "0.49918348", "0.49872583", "0.49718943", "0.49613857", "0.49593315", "0.49485755", "0.49451947", "0.49386737", "0.49193636", "0.49021974", "0.4898463", "0.48779678", "0.4873936", "0.48627698", "0.48574138", "0.4848732", "0.48415148", "0.48331323", "0.48306897", "0.48279563", "0.4827098", "0.48216748", "0.4821456", "0.48191443", "0.48184955", "0.4818093", "0.4818093", "0.4818093", "0.48179594", "0.47971505", "0.47865435", "0.47752008", "0.477201", "0.477201", "0.4768877", "0.47662845", "0.4761155", "0.4761155", "0.4742189", "0.4742067", "0.47343725", "0.47339234", "0.47335657", "0.4731528", "0.4730096", "0.47152856", "0.47123188", "0.47081798", "0.4707815", "0.4707536", "0.4706989", "0.469789", "0.46978503", "0.46934995", "0.46904045", "0.46847433", "0.4677092", "0.46722576", "0.46594903", "0.46567383", "0.46534333", "0.46451628", "0.46385238", "0.46379015", "0.46370372", "0.46365553", "0.46268043", "0.46258602", "0.46258602", "0.46255443", "0.46232304", "0.46228892", "0.46048412", "0.458889", "0.45797956", "0.45716545", "0.4570531", "0.45704266", "0.45671728", "0.4563833", "0.45529503", "0.45516083" ]
0.67806697
0
optional string ua = 4;
boolean hasUa();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string ua = 4;
java.lang.String getUa();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.5158336
49
optional string ua = 4;
com.google.protobuf.ByteString getUaBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string serviceCmd = 5;
boolean hasServiceCmd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.6582035
4
optional string serviceCmd = 5;
java.lang.String getServiceCmd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.7922333
0
optional string serviceCmd = 5;
com.google.protobuf.ByteString getServiceCmdBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.62367207
11
optional uint32 flag = 11;
boolean hasFlag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.0
-1
optional uint32 flag = 11;
int getFlag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.6683264
0
optional uint32 sessionId = 12;
boolean hasSessionId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.5595775
77
optional uint32 sessionId = 12;
int getSessionId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.70328677
1
Use UpstreamPacket.newBuilder() to construct.
private UpstreamPacket(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AckPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Packet() {\n\t}", "private SingleChatPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "private FriendEventPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "private MessageUpLevelUser(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private AuthPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PushParkingRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private HeartBeatPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PingMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "FJPacket( AutoBuffer ab, int ctrl ) { _ab = ab; _ctrl = ctrl; }", "public NbMessage(short[] packet) {\n /**\n * Parse using shorts\n */\n this.packet = packet;\n byte header = (byte) ((packet[0] & 0b1111000000000000) >> 12);\n this.isValid = (header == DATA_HEADER);\n this.subheader = (packet[0] & 0b0000111000000000) >> 9;\n this.channel = (packet[0] & 0b0000000111000000) >> 6;\n this.header = (packet[0] & 0b1111000000000000) >> 12;\n this.data = packet[1];\n }", "public SyncFluidPacket() {\n }", "private GroupChatPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public UdpPacketSender() {\r\n\t\ttry {\r\n\t\t\tthis.socket = new DatagramSocket();\r\n\t\t} catch (final SocketException e) {\r\n\t\t\tlog.log(Level.SEVERE, e.getMessage(), e);\r\n\t\t}\r\n\t}", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "private NetTransferMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private GroupEventPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "RS3PacketBuilder buildPacket(T node);", "public Packet(Packet packetIn) {\n this.id = packetIn.getId();\n this.yCoordinate = packetIn.getyCoordinate();\n this.xCoordinate = packetIn.getxCoordinate();\n this.previousHop = packetIn.getPreviousHop();\n this.sequenceNumber = packetIn.getSequenceNumber();\n this.speed = packetIn.getSpeed();\n this.sourceNode = packetIn.getSourceNode();\n this.packetType = packetIn.getPacketType();\n this.portNumber = packetIn.getPortNumber();\n this.idTo = packetIn.getIdTo();\n this.packetType = packetIn.getPacketType();\n }", "public Message(Socket s, Packet p) {\n // userName = \"\";\n socket = s;\n packet = p;\n }", "protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}", "private FullExtTcpPacket createPacket(\n long dataSizeByte,\n long sequenceNumber,\n long ackNumber,\n boolean ACK,\n boolean SYN,\n boolean ECE\n ) {\n return new FullExtTcpPacket(\n flowId, dataSizeByte, sourceId, destinationId,\n 100, 80, 80, // TTL, source port, destination port\n sequenceNumber, ackNumber, // Seq number, Ack number\n false, false, ECE, // NS, CWR, ECE\n false, ACK, false, // URG, ACK, PSH\n false, SYN, false, // RST, SYN, FIN\n congestionWindow, 0 // Window size, Priority\n );\n }", "private Pinger(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "private UConnect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CallComingUp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public RawPacket(String subChannel) {\n this.subChannel = subChannel;\n }", "private SourceRconPacketFactory() {\n }", "public PingWebSocketFrame(ByteBuf binaryData) {\n/* 40 */ super(binaryData);\n/* */ }", "private SIFPreprocessorPreprocessedStreamOutput(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {\n ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);\n fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp,\n srcUdp, result, DHCP_BOOTREQUEST, mBroadcast);\n result.flip();\n return result;\n }", "private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Wifi(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private FeedBack4ParkingRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private PushParkingResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private PlayerAvatar(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ProtocolMessage(Builder builder) {\n super(builder);\n }", "private NetTransferMsgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TransmissionMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PacketHandler() {}", "private IP(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PingWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData) {\n/* 54 */ super(finalFragment, rsv, binaryData);\n/* */ }", "public static AisPacketStream newStream() {\n return new AisPacketStreamImpl();\n }", "private UploadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TransformedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public ImmutableAisPacketStream(AisPacketStream stream) {\n super(stream);\n }", "private Payload(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Pokemon.Payload, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public RequestPacket(String protocol) {\n super();\n parseProtocol(protocol);\n }", "private ReqPairingProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private HeaderProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private TradeMsgGunInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private PBHeuristicRequestMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Socket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\t\tsuper(builder);\n\t\t\t}", "public RequestHandler(DatagramPacket requestPacket) {\n this.requestPacket = requestPacket;\n }", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "private AUVCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public WirePacket(PacketType type, byte[] bytes) {\n\t\tthis.id = checkNotNull(type, \"type cannot be null\").getCurrentId();\n\t\tthis.bytes = bytes;\n\t}", "public PacketAssembler()\n {\n \tthis.theTreeMaps = new TreeMap<Integer, TreeMap<Integer,String>>();\n \tthis.countPerMessage = new TreeMap<Integer,Integer>();\n }", "private Unknown6(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Unknown6(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private HeartBeatProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public ModifyUpstreamResultInfo(ModifyUpstreamResultInfo source) {\n if (source.UpstreamId != null) {\n this.UpstreamId = new String(source.UpstreamId);\n }\n if (source.UpstreamName != null) {\n this.UpstreamName = new String(source.UpstreamName);\n }\n if (source.UpstreamDescription != null) {\n this.UpstreamDescription = new String(source.UpstreamDescription);\n }\n if (source.Scheme != null) {\n this.Scheme = new String(source.Scheme);\n }\n if (source.Algorithm != null) {\n this.Algorithm = new String(source.Algorithm);\n }\n if (source.UniqVpcId != null) {\n this.UniqVpcId = new String(source.UniqVpcId);\n }\n if (source.Retries != null) {\n this.Retries = new Long(source.Retries);\n }\n if (source.Nodes != null) {\n this.Nodes = new UpstreamNode[source.Nodes.length];\n for (int i = 0; i < source.Nodes.length; i++) {\n this.Nodes[i] = new UpstreamNode(source.Nodes[i]);\n }\n }\n if (source.CreatedTime != null) {\n this.CreatedTime = new String(source.CreatedTime);\n }\n if (source.HealthChecker != null) {\n this.HealthChecker = new UpstreamHealthChecker(source.HealthChecker);\n }\n if (source.UpstreamType != null) {\n this.UpstreamType = new String(source.UpstreamType);\n }\n if (source.K8sServices != null) {\n this.K8sServices = new K8sService[source.K8sServices.length];\n for (int i = 0; i < source.K8sServices.length; i++) {\n this.K8sServices[i] = new K8sService(source.K8sServices[i]);\n }\n }\n if (source.UpstreamHost != null) {\n this.UpstreamHost = new String(source.UpstreamHost);\n }\n }", "public MAVLinkPacket pack() {\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS;\n\n packet.payload.putUnsignedLong(time_usec);\n\n packet.payload.putUnsignedInt(uptime);\n\n packet.payload.putUnsignedInt(ram_usage);\n\n packet.payload.putUnsignedInt(ram_total);\n\n\n for (int i = 0; i < storage_type.length; i++) {\n packet.payload.putUnsignedInt(storage_type[i]);\n }\n\n\n for (int i = 0; i < storage_usage.length; i++) {\n packet.payload.putUnsignedInt(storage_usage[i]);\n }\n\n\n for (int i = 0; i < storage_total.length; i++) {\n packet.payload.putUnsignedInt(storage_total[i]);\n }\n\n\n for (int i = 0; i < link_type.length; i++) {\n packet.payload.putUnsignedInt(link_type[i]);\n }\n\n\n for (int i = 0; i < link_tx_rate.length; i++) {\n packet.payload.putUnsignedInt(link_tx_rate[i]);\n }\n\n\n for (int i = 0; i < link_rx_rate.length; i++) {\n packet.payload.putUnsignedInt(link_rx_rate[i]);\n }\n\n\n for (int i = 0; i < link_tx_max.length; i++) {\n packet.payload.putUnsignedInt(link_tx_max[i]);\n }\n\n\n for (int i = 0; i < link_rx_max.length; i++) {\n packet.payload.putUnsignedInt(link_rx_max[i]);\n }\n\n\n for (int i = 0; i < fan_speed.length; i++) {\n packet.payload.putShort(fan_speed[i]);\n }\n\n\n packet.payload.putUnsignedByte(type);\n\n\n for (int i = 0; i < cpu_cores.length; i++) {\n packet.payload.putUnsignedByte(cpu_cores[i]);\n }\n\n\n for (int i = 0; i < cpu_combined.length; i++) {\n packet.payload.putUnsignedByte(cpu_combined[i]);\n }\n\n\n for (int i = 0; i < gpu_cores.length; i++) {\n packet.payload.putUnsignedByte(gpu_cores[i]);\n }\n\n\n for (int i = 0; i < gpu_combined.length; i++) {\n packet.payload.putUnsignedByte(gpu_combined[i]);\n }\n\n\n packet.payload.putByte(temperature_board);\n\n\n for (int i = 0; i < temperature_core.length; i++) {\n packet.payload.putByte(temperature_core[i]);\n }\n\n\n return packet;\n }", "private TradeMsgSupcardRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RequestUpdatePosition(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Request(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Pokemon.Request, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private InvalidEventPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Packet(PacketId packetId, String message)\n {\n this.packetId = packetId;\n this.message = message;\n\n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 1;\n packet.compid = 1;\n packet.msgid = MAVLINK_MSG_ID_BATTERY_batterySTATUS;\n \n packet.payload.putInt(time_total);\n \n packet.payload.putInt(time_remaining);\n \n packet.payload.putByte(battery_remaining);\n \n packet.payload.putUnsignedByte(charge_state);\n \n return packet;\n }", "private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ProfileMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "private MessageNewUser(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private SocketMessage() {\n initFields();\n }", "private SCSyncMemberInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public static WirePacket fromPacket(Object packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\t\tcheckArgument(MinecraftReflection.isPacketClass(packet), \"packet must be a Minecraft packet\");\n\n\t\tPacketType type = PacketType.fromClass(packet.getClass());\n\t\tint id = type.getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet, buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "private AUVState(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Movement(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public RtpPacketTest() {\n\n\t}", "private UConnected(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet.getHandle(), buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;", "private static byte[] createPacket(byte[] data, int destinationPort) {\n\n byte[] send = new byte[28];\n\n send[0] = (byte) ((4 << 4) + 5); // Version 4 and 5 words\n send[1] = 0; // TOS (Don't implement)\n send[2] = 0; // Total length\n send[3] = 22; // Total length\n send[4] = 0; // Identification (Don't implement)\n send[5] = 0; // Identification (Don't implement)\n send[6] = (byte) 0b01000000; // Flags and first part of Fragment offset\n send[7] = (byte) 0b00000000; // Fragment offset\n send[8] = 50; // TTL = 50\n send[9] = 0x11; // Protocol (UDP = 17)\n send[10] = 0; // CHECKSUM\n send[11] = 0; // CHECKSUM\n send[12] = (byte) 127; // 127.0.0.1 (source address)\n send[13] = (byte) 0; // 127.0.0.1 (source address)\n send[14] = (byte) 0; // 127.0.0.1 (source address)\n send[15] = (byte) 1; // 127.0.0.1 (source address)\n send[16] = (byte) 0x2d; // (destination address)\n send[17] = (byte) 0x32; // (destination address)\n send[18] = (byte) 0x5; // (destination address)\n send[19] = (byte) 0xee; // (destination address)\n\n short length = (short) (28 + data.length); // Quackulate the total length\n byte right = (byte) (length & 0xff);\n byte left = (byte) ((length >> 8) & 0xff);\n send[2] = left;\n send[3] = right;\n\n short checksum = calculateChecksum(send); // Quackulate the checksum\n\n byte second = (byte) (checksum & 0xff);\n byte first = (byte) ((checksum >> 8) & 0xff);\n send[10] = first;\n send[11] = second;\n\n /*\n * UDP Header\n * */\n short udpLen = (short) (8 + data.length);\n byte rightLen = (byte) (udpLen & 0xff);\n byte leftLen = (byte) ((udpLen >> 8) & 0xff);\n\n send[20] = (byte) 12; // Source Port\n send[21] = (byte) 34; // Source Port\n send[22] = (byte) ((destinationPort >> 8) & 0xff); // Destination Port\n send[23] = (byte) (destinationPort & 0xff); // Destination Port\n send[24] = leftLen; // Length\n send[25] = rightLen; // Length\n send[26] = 0; // Checksum\n send[27] = 0; // Checksum\n\n /*\n * pseudoheader + actual header + data to calculate checksum\n * */\n byte[] checksumArray = new byte[12 + 8]; // 12 = pseudoheader, 8 = UDP Header\n checksumArray[0] = send[12]; // Source ip address\n checksumArray[1] = send[13]; // Source ip address\n checksumArray[2] = send[14]; // Source ip address\n checksumArray[3] = send[15]; // Source ip address\n checksumArray[4] = send[16]; // Destination ip address\n checksumArray[5] = send[17]; // Destination ip address\n checksumArray[6] = send[18]; // Destination ip address\n checksumArray[7] = send[19]; // Destination ip address\n checksumArray[8] = 0; // Zeros for days\n checksumArray[9] = send[9]; // Protocol\n checksumArray[10] = send[24]; // Udp length\n checksumArray[11] = send[25]; // Udp length\n // end pseudoheader\n checksumArray[12] = send[20]; // Source Port\n checksumArray[13] = send[21]; // Source Port\n checksumArray[14] = send[22]; // Destination Port\n checksumArray[15] = send[23]; // Destination Port\n checksumArray[16] = send[24]; // Length\n checksumArray[17] = send[25]; // Length\n checksumArray[18] = send[26]; // Checksum\n checksumArray[19] = send[27]; // Checksum\n // end actual header\n checksumArray = concatenateByteArrays(checksumArray, data); // Append data\n\n short udpChecksum = calculateChecksum(checksumArray);\n byte rightCheck = (byte) (udpChecksum & 0xff);\n byte leftCheck = (byte) ((udpChecksum >> 8) & 0xff);\n\n send[26] = leftCheck; // Save checksum\n send[27] = rightCheck; // Save checksum\n\n send = concatenateByteArrays(send, data);\n\n return send;\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private usrdev_uploaddata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void parsePacket() {\n\n // Request a new data buffer if no data is currently available.\n if (receiveBuffer == null) {\n socketHandle.read(DEFAULT_REQUEST_SIZE).addDeferrable(this, true);\n return;\n }\n\n // Attempt to parse the next packet. This can result in malformed message\n // exceptions which are passed back to the caller or buffer underflow exceptions\n // which result in a request for more data.\n final int startPosition = receiveBuffer.position();\n try {\n\n // Extract the main header byte and message length. If this fails the connection\n // is unrecoverable and must be closed.\n final int headerByte = 0xFF & receiveBuffer.get();\n final ControlPacketType controlPacketType = ControlPacketType.getControlPacketType(headerByte);\n if (controlPacketType == null) {\n throw new MalformedPacketException(\"Invalid control packet type\");\n }\n final int messageLength = VarLenQuantity.create(receiveBuffer).getValue();\n\n // Determine whether there is sufficient data in the buffer to parse the full\n // message. If not, request further data in an expanded buffer.\n if (messageLength > receiveBuffer.remaining()) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(5 + messageLength);\n return;\n }\n\n // Parse the packet body, based on the known control packet type.\n ControlPacket parsedPacket;\n switch (controlPacketType) {\n case CONNECT:\n parsedPacket = ConnectPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case CONNACK:\n parsedPacket = ConnackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case PUBLISH:\n parsedPacket = PublishPacket.parsePacket(headerByte, messageLength, receiveBuffer);\n break;\n case SUBSCRIBE:\n case UNSUBSCRIBE:\n parsedPacket = SubscribePacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n case SUBACK:\n parsedPacket = SubackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n default:\n parsedPacket = ControlPacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n }\n\n // Include packet tracing if required.\n if (logger.getLogLevel() == Level.FINER) {\n logger.log(Level.FINER, \"RX \" + parsedPacket.tracePacket(false, false));\n } else if (logger.getLogLevel() == Level.FINEST) {\n logger.log(Level.FINEST, \"RX \" + parsedPacket.tracePacket(false, true));\n }\n\n // Hand off the received packet.\n deferredReceive.callback(parsedPacket);\n deferredReceive = null;\n\n // After parsing the packet, release any fully consumed buffers.\n if (!receiveBuffer.hasRemaining()) {\n socketService.releaseByteBuffer(receiveBuffer);\n receiveBuffer = null;\n }\n }\n\n // Request more data on a buffer underflow. This doubles the size of the request\n // buffer and then attempts to fill it.\n catch (final BufferUnderflowException error) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(2 * receiveBuffer.remaining());\n }\n\n // Handle fatal errors.\n catch (final Exception error) {\n deferredReceive.errback(error);\n deferredReceive = null;\n }\n }", "public Packet1Login () { \n }", "public com.google.protobuf.Empty simulateUplink(org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request);", "private PlainTransferFrom(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PublicChatRequest(Builder builder) {\n super(builder);\n }", "private ExplicitDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Monster(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }" ]
[ "0.5798659", "0.57819027", "0.57088023", "0.56792086", "0.56420326", "0.55969816", "0.55598336", "0.5522868", "0.5511937", "0.54885364", "0.5472953", "0.53825164", "0.53585386", "0.5352623", "0.5318841", "0.5305531", "0.5294406", "0.52580875", "0.5256486", "0.5251517", "0.5229976", "0.5209455", "0.51605743", "0.51477516", "0.5127241", "0.5099466", "0.50723016", "0.5046644", "0.5041219", "0.5016737", "0.50165343", "0.501393", "0.5013214", "0.5000295", "0.49998513", "0.4995212", "0.49869555", "0.49862882", "0.4983536", "0.49790496", "0.4943817", "0.49343258", "0.49323103", "0.49270275", "0.48992866", "0.48962635", "0.4883341", "0.48801783", "0.48732287", "0.48694104", "0.486674", "0.48242593", "0.4812676", "0.48089433", "0.4802582", "0.4798279", "0.47941738", "0.47844505", "0.478164", "0.47755066", "0.47723454", "0.47685033", "0.47685033", "0.47584975", "0.4756646", "0.47556475", "0.47549775", "0.47501737", "0.4749161", "0.4744547", "0.47438222", "0.4741148", "0.47358963", "0.47285473", "0.4726045", "0.47193435", "0.47180384", "0.47180066", "0.4714673", "0.47117782", "0.47111636", "0.47078735", "0.47057828", "0.46932462", "0.46925023", "0.46908757", "0.46867493", "0.46867493", "0.46867493", "0.46867493", "0.46863493", "0.4679672", "0.4678795", "0.4667124", "0.46661282", "0.46660385", "0.46621054", "0.4661021", "0.46589983", "0.46541935" ]
0.789499
0
optional string ua = 4;
@Override public boolean hasUa() { return ((bitField0_ & 0x00000008) == 0x00000008); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string ua = 4;
@Override public java.lang.String getUa() { java.lang.Object ref = ua_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ua_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.56268734
18
optional string ua = 4;
@Override public com.google.protobuf.ByteString getUaBytes() { java.lang.Object ref = ua_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ua_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string serviceCmd = 5;
@Override public boolean hasServiceCmd() { return ((bitField0_ & 0x00000010) == 0x00000010); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.6264885
10
optional string serviceCmd = 5;
@Override public java.lang.String getServiceCmd() { java.lang.Object ref = serviceCmd_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { serviceCmd_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.6853655
3
optional string serviceCmd = 5;
@Override public com.google.protobuf.ByteString getServiceCmdBytes() { java.lang.Object ref = serviceCmd_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceCmd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.62662
9
optional uint32 flag = 11;
@Override public boolean hasFlag() { return ((bitField0_ & 0x00000400) == 0x00000400); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.5267542
65
optional uint32 flag = 11;
@Override public int getFlag() { return flag_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.5531211
23
optional uint32 sessionId = 12;
@Override public boolean hasSessionId() { return ((bitField0_ & 0x00000800) == 0x00000800); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.5872042
37
optional uint32 sessionId = 12;
@Override public int getSessionId() { return sessionId_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.6389632
13
optional string ua = 4;
@Override public boolean hasUa() { return ((bitField0_ & 0x00000008) == 0x00000008); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string ua = 4;
@Override public java.lang.String getUa() { java.lang.Object ref = ua_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ua_ = s; } return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.5635492
17
optional string ua = 4;
@Override public com.google.protobuf.ByteString getUaBytes() { java.lang.Object ref = ua_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ua_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.4891998
96
optional string ua = 4;
public Builder setUa( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ua_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.5765067
11
optional string ua = 4;
public Builder clearUa() { bitField0_ = (bitField0_ & ~0x00000008); ua_ = getDefaultInstance().getUa(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string ua = 4;
public Builder setUaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ua_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getUserAgent();", "String getUserAgent();", "java.lang.String getUserAgent();", "public void setUserAgent(String uaName, String version);", "public String getUserAgent(){\n return this.userAgent;\n }", "public String getUserAgent();", "@Override\r\n\tpublic String getUserAgent() {\n\t\treturn null;\r\n\t}", "protected String getUserAgent() {\n return null;\n }", "@AppNameInUserAgent\n public abstract String assertUserAgentAppName();", "@Test\n public void getUserAgentStringWithoutExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING, actualUserAgentString);\n }", "public static String m21385a() {\n return System.getProperty(\"http.agent\");\n }", "public Builder setUa(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ua_ = value;\n onChanged();\n return this;\n }", "String getBrowser();", "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userAgent_ = value;\n onChanged();\n return this;\n }", "public static String getDefaultUserAgent(){\n return sDefaultUserAgent;\n }", "public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }", "@Test\n public void getUserAgentStringWithExtra()\n {\n //arrange\n ProductInfo actual = new ProductInfo();\n String expectedExtra = \"some extra information\";\n actual.setExtra(expectedExtra);\n\n //act\n String actualUserAgentString = actual.getUserAgentString();\n\n //assert\n assertEquals(TransportUtils.USER_AGENT_STRING + \" \" + expectedExtra, actualUserAgentString);\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getUa() {\n java.lang.Object ref = ua_;\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 ua_ = s;\n }\n return s;\n }\n }", "public static String getUserAgent()\n {\n return USER_AGENT;\n }", "public String getUserAgent() {\n return userAgent;\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setUserAgentVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n userAgentVersionTypeCase_ = 7;\n userAgentVersionType_ = value;\n onChanged();\n return this;\n }", "public void setUserAgent(String userAgent){\n this.userAgent = userAgent;\n }", "public void onUaCallTransferred(UserAgent ua)\n { \n }", "public java.lang.String getUserAgent() {\n java.lang.Object ref = userAgent_;\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 userAgent_ = s;\n }\n return s;\n }\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "void mo5871a(String str);", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "EReqOrCap getReq_cap();", "@java.lang.Override\n public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserAgentVersion() {\n java.lang.Object ref = \"\";\n if (userAgentVersionTypeCase_ == 7) {\n ref = userAgentVersionType_;\n }\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 (userAgentVersionTypeCase_ == 7) {\n userAgentVersionType_ = s;\n }\n return s;\n }\n }", "private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }", "public interface UserAgent {\n\n// csci4311.chat.CLIUserAgent, which\n// implements\n// the\n// csci4311.chat.UserAgent\n// interface,\n\n// The csci4311.chat.CLIUserAgent class must only implement user interaction, and no\n// protocol details.\n\n //No protocol details\n// public void startReadWriteOperation();\n\n public void packetReceiver(Socket socket);\n public void packetSender(Socket socket,String clientName);\n\n}", "String getProtocol();", "void mo85415a(String str);", "private String createUserAgent() {\n String userAgentString = createUserAgentString();\n StringBuilder result = new StringBuilder();\n\n // Removing invalid characters\n for (int i = 0; i < userAgentString.length(); i++) {\n char c = userAgentString.charAt(i);\n if (c == '\\t' || ('\\u0020' <= c && c <= '\\u007e')) {\n result.append(c);\n }\n }\n return result.toString();\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private String getUserAgent(HTTPSampleResult sampleResult) {\n String res = sampleResult.getRequestHeaders();\n int index = res.indexOf(USER_AGENT);\n if (index >= 0) {\n // see HTTPHC3Impl#getConnectionHeaders\n // see HTTPHC4Impl#getConnectionHeaders\n // see HTTPJavaImpl#getConnectionHeaders\n //': ' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n final String userAgentPrefix = USER_AGENT+\": \";\n String userAgentHdr = res.substring(\n index+userAgentPrefix.length(),\n res.indexOf('\\n',// '\\n' is used by JMeter to fill-in requestHeaders, see getConnectionHeaders\n index+userAgentPrefix.length()+1));\n return userAgentHdr.trim();\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"No user agent extracted from requestHeaders:\" + res);\n }\n return null;\n }\n }", "public void setRua(String rua) {this.rua = rua;}", "public abstract void mo4373a(String str);", "public static void m5832h(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"failed_vehicleNum\", str);\n f4669a.m12578a(\"WebView_Open\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"WebView Open\").putCustomAttribute(\"failed vehicleNum\", str));\n }", "boolean hasUserAgent();", "@java.lang.Override\n public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "public final String getUserAgent( ) {\r\n\t\treturn this.userAgent;\r\n\t}", "java.lang.String getUa();", "void setOsU( String osU );", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "void mo37759a(String str);", "@java.lang.Override\n public boolean hasUserAgentBuildVersion() {\n return userAgentVersionTypeCase_ == 8;\n }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public void onUaCallProgress(UserAgent ua)\n {\n }", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "@Override\n\tpublic java.lang.String getUserAgent() {\n\t\treturn _userTracker.getUserAgent();\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "protected void parse() {\n\t\tcustomUserAgent = getConfig().getString(CUSTOM_HTTP_HEADER_USER_AGENT, \"\");\r\n\t}", "Lingua getLingua();", "public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String excuteString(HttpRequestMessage request,String ip)\n\t{\n\t\treturn null;\n\t}", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "void mo3768a(String str);", "public static String userAgent() {\n Random random = new Random();\n return userAgents.get(random.nextInt(userAgents.size()));\n }", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}", "String getInternetseite();", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "void mo9697a(String str);", "public static void setUserAgent(String userAgent)\n {\n USER_AGENT = userAgent;\n }", "@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}", "private void setLoginReq(Login.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 6;\n }", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}", "public static void m1553u(String str) {\n if (m1550n(4)) {\n Log.i(AdRequest.LOGTAG, str);\n }\n }", "static int type_of_cma(String passed){\n\t\treturn 1;\n\t}", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }", "void mo88522a(String str);", "void mo1791a(String str);", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public Builder setUserAgentName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userAgentName_ = value;\n onChanged();\n return this;\n }", "void mo1932a(String str);", "private String m6937a(Context context, String str) {\n Object obj;\n try {\n obj = (String) this.f4146a.mo1017a(context, this.f4147b);\n if (TtmlNode.ANONYMOUS_REGION_ID.equals(obj)) {\n obj = null;\n }\n } catch (Throwable e) {\n C1230c.m6414h().mo1070e(\"Beta\", \"Failed to load the Beta device token\", e);\n obj = null;\n }\n C1230c.m6414h().mo1062a(\"Beta\", \"Beta device token present: \" + (!TextUtils.isEmpty(obj)));\n return obj;\n }", "public abstract HttpClient.Version version();", "public static void m15841a(String str) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"show\");\n hashMap.put(\"request_page\", str);\n C8443c.m25663a().mo21606a(\"guest_connection\", hashMap, Room.class);\n }", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "@Override\n public com.google.protobuf.ByteString\n getUaBytes() {\n java.lang.Object ref = ua_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ua_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "DownloadInfo mo54422b(String str, String str2);", "void mo12635a(String str);", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }" ]
[ "0.6813141", "0.6552051", "0.62983245", "0.628499", "0.62419367", "0.6199277", "0.6025085", "0.60037595", "0.5897985", "0.5856616", "0.5829649", "0.5765067", "0.5756006", "0.5702375", "0.57023615", "0.56873345", "0.5651943", "0.5635492", "0.56268734", "0.55656743", "0.55379015", "0.5510796", "0.5463462", "0.5460248", "0.54542947", "0.5449021", "0.5442553", "0.53931534", "0.53902775", "0.5329296", "0.5325311", "0.5325311", "0.5303011", "0.5297845", "0.5286028", "0.52744293", "0.5273825", "0.5273306", "0.52672935", "0.524008", "0.52397096", "0.5228297", "0.5217018", "0.52108043", "0.5205913", "0.5202591", "0.52017164", "0.5165416", "0.51643634", "0.5158336", "0.5145093", "0.51161", "0.51124465", "0.5104907", "0.5104069", "0.50855726", "0.50842875", "0.50782555", "0.50760174", "0.5074741", "0.5069053", "0.5064865", "0.50535536", "0.5046304", "0.50363326", "0.50322825", "0.5023615", "0.5015565", "0.500939", "0.5007777", "0.5007492", "0.5006731", "0.5000439", "0.49920627", "0.4990533", "0.4983877", "0.49715793", "0.49708042", "0.49667704", "0.49658072", "0.49658072", "0.4964787", "0.49573052", "0.49515167", "0.49480808", "0.49471465", "0.49453205", "0.49434984", "0.49270588", "0.49259824", "0.49215308", "0.49173033", "0.4905749", "0.4897219", "0.48957017", "0.4892522", "0.4891998", "0.4884928", "0.48842204", "0.4880433", "0.48757535" ]
0.0
-1
optional string serviceCmd = 5;
@Override public boolean hasServiceCmd() { return ((bitField0_ & 0x00000010) == 0x00000010); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.62765485
8
optional string serviceCmd = 5;
@Override public java.lang.String getServiceCmd() { java.lang.Object ref = serviceCmd_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { serviceCmd_ = s; } return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.68871963
2
optional string serviceCmd = 5;
@Override public com.google.protobuf.ByteString getServiceCmdBytes() { java.lang.Object ref = serviceCmd_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceCmd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.64992297
5
optional string serviceCmd = 5;
public Builder setServiceCmd( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; serviceCmd_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.70824
1
optional string serviceCmd = 5;
public Builder clearServiceCmd() { bitField0_ = (bitField0_ & ~0x00000010); serviceCmd_ = getDefaultInstance().getServiceCmd(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "public Builder setServiceCmdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.6321953", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.5244415
93
optional string serviceCmd = 5;
public Builder setServiceCmdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; serviceCmd_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceCmd();", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }", "boolean hasServiceCmd();", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getCmd();", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public boolean hasServiceCmd() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "com.google.protobuf.ByteString\n getServiceCmdBytes();", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "int getServiceNum();", "public void setService (String service) {\n\t this.service = service;\n\t}", "Optional<String> command();", "CarAvailableCommand(CarService service){\n this.service=service;\n }", "java.lang.String getCommand();", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "String getCommand();", "public abstract void mo13501b(C3491a aVar, ServiceConnection serviceConnection, String str);", "public abstract String getCommand();", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "int getCommand();", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "CdapStopServiceStep createCdapStopServiceStep();", "public void service() {\n\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "CdapStartServiceStep createCdapStartServiceStep();", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public interface ListService {\n\n public String showListCmd();\n\n}", "public abstract String getServiceName();", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public int onStartCommand(android.content.Intent r9, int r10, int r11) {\n /*\n r8 = this;\n r6 = 1;\n r5 = 0;\n r8.lastStartId = r11;\n r8.taskRemoved = r5;\n r2 = 0;\n if (r9 == 0) goto L_0x0025;\n L_0x0009:\n r2 = r9.getAction();\n r7 = r8.startedInForeground;\n r4 = \"foreground\";\n r4 = r9.getBooleanExtra(r4, r5);\n if (r4 != 0) goto L_0x0021;\n L_0x0018:\n r4 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r4 = r4.equals(r2);\n if (r4 == 0) goto L_0x0090;\n L_0x0021:\n r4 = r6;\n L_0x0022:\n r4 = r4 | r7;\n r8.startedInForeground = r4;\n L_0x0025:\n if (r2 != 0) goto L_0x002a;\n L_0x0027:\n r2 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n L_0x002a:\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r7 = \"onStartCommand action: \";\n r4 = r4.append(r7);\n r4 = r4.append(r2);\n r7 = \" startId: \";\n r4 = r4.append(r7);\n r4 = r4.append(r11);\n r4 = r4.toString();\n r8.logd(r4);\n r4 = -1;\n r7 = r2.hashCode();\n switch(r7) {\n case -871181424: goto L_0x009c;\n case -608867945: goto L_0x00b2;\n case -382886238: goto L_0x00a7;\n case 1015676687: goto L_0x0092;\n default: goto L_0x0054;\n };\n L_0x0054:\n r5 = r4;\n L_0x0055:\n switch(r5) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0072;\n case 2: goto L_0x00bd;\n case 3: goto L_0x00e1;\n default: goto L_0x0058;\n };\n L_0x0058:\n r4 = \"DownloadService\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r7 = \"Ignoring unrecognized action: \";\n r5 = r5.append(r7);\n r5 = r5.append(r2);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n L_0x0072:\n r3 = r8.getRequirements();\n r4 = r3.checkRequirements(r8);\n if (r4 == 0) goto L_0x00e5;\n L_0x007c:\n r4 = r8.downloadManager;\n r4.startDownloads();\n L_0x0081:\n r8.maybeStartWatchingRequirements(r3);\n r4 = r8.downloadManager;\n r4 = r4.isIdle();\n if (r4 == 0) goto L_0x008f;\n L_0x008c:\n r8.stop();\n L_0x008f:\n return r6;\n L_0x0090:\n r4 = r5;\n goto L_0x0022;\n L_0x0092:\n r7 = \"com.google.android.exoplayer.downloadService.action.INIT\";\n r7 = r2.equals(r7);\n if (r7 == 0) goto L_0x0054;\n L_0x009b:\n goto L_0x0055;\n L_0x009c:\n r5 = \"com.google.android.exoplayer.downloadService.action.RESTART\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00a5:\n r5 = r6;\n goto L_0x0055;\n L_0x00a7:\n r5 = \"com.google.android.exoplayer.downloadService.action.ADD\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00b0:\n r5 = 2;\n goto L_0x0055;\n L_0x00b2:\n r5 = \"com.google.android.exoplayer.downloadService.action.RELOAD_REQUIREMENTS\";\n r5 = r2.equals(r5);\n if (r5 == 0) goto L_0x0054;\n L_0x00bb:\n r5 = 3;\n goto L_0x0055;\n L_0x00bd:\n r4 = \"download_action\";\n r0 = r9.getByteArrayExtra(r4);\n if (r0 != 0) goto L_0x00d0;\n L_0x00c6:\n r4 = \"DownloadService\";\n r5 = \"Ignoring ADD action with no action data\";\n android.util.Log.e(r4, r5);\n goto L_0x0072;\n L_0x00d0:\n r4 = r8.downloadManager;\t Catch:{ IOException -> 0x00d6 }\n r4.handleAction(r0);\t Catch:{ IOException -> 0x00d6 }\n goto L_0x0072;\n L_0x00d6:\n r1 = move-exception;\n r4 = \"DownloadService\";\n r5 = \"Failed to handle ADD action\";\n android.util.Log.e(r4, r5, r1);\n goto L_0x0072;\n L_0x00e1:\n r8.stopWatchingRequirements();\n goto L_0x0072;\n L_0x00e5:\n r4 = r8.downloadManager;\n r4.stopDownloads();\n goto L_0x0081;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int\");\n }", "String getService_id();", "private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public void setOperation (String Operation);", "public String getCommand(){\n return command;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public String Command() {\n\treturn command;\n }", "public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public String getUserCommand();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }", "public String getCommand() { return command; }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "public static String parseInstruction(String instruction)\n\t{\n\t\tScanner in = new Scanner(instruction);\n\t\tin.useDelimiter(\",\");\n\t\t\n\t\tString serviceCode = in.next();\n\t\t\n\t\tInteger returnCode = -1;\n\t\tString returnData = \"\";\n\t\t\n\t\tBoolean foundFlag = false;\n\t\tString utilityModule = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tString brokerPath = new File(brokerFileLocation).getAbsolutePath();\n\t\t\tFile brokerFile = new File(brokerPath);\n\t\t\tScanner serviceFile = new Scanner(brokerFile);\n\t\t\tserviceFile.useDelimiter(\",\");\n\t\t\t\n\t\t\t//Searches through the broker file for the serviceCode.\n\t\t\tdo\n\t\t\t{\n\t\t\t\tString code = serviceFile.next();\n\t\t\t\t\n\t\t\t\tif(code.equals(serviceCode))\n\t\t\t\t{\n\t\t\t\t\tutilityModule = serviceFile.nextLine().substring(1);\n\t\t\t\t\tfoundFlag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tserviceFile.nextLine();\n\t\t\t}while(foundFlag==false && serviceFile.hasNext());\n\t\t\t\n\t\t\t//If we find the code, we call the module and pass in the arguments.\n\t\t\tif(foundFlag)\n\t\t\t{\n\t\t\t\tString serviceArgs = \"\";\n\t\t\t\t\n\t\t\t\tif(in.hasNext())\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = in.nextLine();\n\t\t\t\t}\n\t\t\t\t//If no arguments were passed through, return a no-argument error.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\n\t\t\t\t\tserviceFile.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tserviceArgs = serviceArgs.substring(1).replace(',', ' ');\n\t\t\t\t\t\n\t\t\t\t\t//If arguments are empty, return a no-argument error.\n\t\t\t\t\tif(serviceArgs.equals(\"\") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \") || serviceArgs.equals(\" \"))\n\t\t\t\t\t{\n\t\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,402\").substring(2);\n\t\t\t\t\t\treturnCode = 4;\n\t\t\t\t\t\t\n\t\t\t\t\t\tserviceFile.close();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn returnCode + \",\" + returnData;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString utilityPath = new File(utilityModule).getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tutilityModule = \"java -jar \\\"\" + utilityPath + \"\\\" \" + serviceArgs;\n\t\t\t\t\tProcess p = Runtime.getRuntime().exec(utilityModule);\n\t\t\t\t\tBufferedReader moduleOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\n\t\t\t\t\tString curr = \"\";\n\t\t\t\t\twhile(curr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurr = moduleOutput.readLine();\n\t\t\t\t\t\tif(curr!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnData += curr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tp.destroy();\n\t\t\t\t\treturnCode = 0;\n\t\t\t\t} \n\t\t\t\t//File-Not-Found/Command-Not-Recognized error\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\treturnData = parseInstruction(\"MESSAGE,403\").substring(2);\n\t\t\t\t\t//returnData += \"; \" + e.getMessage();\n\t\t\t\t\treturnCode = 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If we don't find the code, create an error message.\n\t\t\telse\n\t\t\t{\n\t\t\t\treturnData = parseInstruction(\"MESSAGE,404\").substring(2);\n\t\t\t\treturnCode = 4;\n\t\t\t}\n\t\t\t\n\t\t\tserviceFile.close();\n\t\t}\n\t\t//If something fails, create an error message.\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturnData = parseInstruction(\"MESSAGE,401\").substring(2);\n\t\t\treturnData += \"; \" + e.toString();\n\t\t\treturnCode = 4;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\treturn returnCode + \",\" + returnData;\n\t}", "public String \n getCommand() \n {\n return pCommand;\n }", "byte getCommand(int n) {\r\n return command_journal[n];\r\n }", "public String getService(){\n\t\t return service;\n\t}", "public String getCmd() {\r\n return cmd;\r\n }", "public String getCommand(){\r\n return commandUpdate;\r\n }", "public void setOperation(String op) {this.operation = op;}", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public GetPriceCmd() {\n\n\t}", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "public abstract boolean mo13500a(C3491a aVar, ServiceConnection serviceConnection, String str);", "public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "StrCommand getFeatureNew();", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\n\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "public void noSuchCommand() {\n }", "public abstract String getLaunchCommand();", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\treturn 0;\n\t}", "pb4server.CallBossAskReq getCallBossAskReq();", "HospitalCommand provideCommand(String uri);", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;", "public Builder clearServiceCmd() {\n bitField0_ = (bitField0_ & ~0x00000010);\n serviceCmd_ = getDefaultInstance().getServiceCmd();\n onChanged();\n return this;\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "int getServicePort();" ]
[ "0.7922333", "0.70824", "0.68871963", "0.6853655", "0.6582035", "0.64992297", "0.6327125", "0.62765485", "0.62662", "0.6264885", "0.62367207", "0.61623234", "0.600514", "0.59701055", "0.59604114", "0.5930169", "0.58976763", "0.5883202", "0.5863352", "0.58633506", "0.5850229", "0.5833435", "0.5821971", "0.57945347", "0.57909423", "0.57546633", "0.575086", "0.57253903", "0.5705496", "0.5697487", "0.5673607", "0.5651173", "0.5641087", "0.5637998", "0.56216156", "0.56087166", "0.560412", "0.55994153", "0.5594132", "0.5562779", "0.55621696", "0.55366", "0.5529363", "0.5514536", "0.5502809", "0.5481352", "0.5481352", "0.5481352", "0.54784584", "0.5477276", "0.5451263", "0.5438918", "0.5430642", "0.5430386", "0.54286623", "0.5428176", "0.5428176", "0.5428176", "0.54261124", "0.54256225", "0.5416864", "0.5410199", "0.5401646", "0.5395364", "0.53879577", "0.5381305", "0.53787893", "0.53729224", "0.53728783", "0.53645337", "0.5358383", "0.5349103", "0.5346461", "0.5344561", "0.53401184", "0.5336111", "0.53196365", "0.53185284", "0.5316154", "0.5313867", "0.5311412", "0.5293898", "0.52927893", "0.52920204", "0.5289029", "0.52854866", "0.5269271", "0.5266975", "0.5266599", "0.5262349", "0.52559674", "0.5244517", "0.5244415", "0.52437186", "0.5240371", "0.5240371", "0.5236261", "0.5235225", "0.5228842", "0.52279" ]
0.6321953
7
optional uint32 flag = 11;
@Override public boolean hasFlag() { return ((bitField0_ & 0x00000400) == 0x00000400); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.5238222
72
optional uint32 flag = 11;
@Override public int getFlag() { return flag_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.54635453
28
optional uint32 flag = 11;
public Builder setFlag(int value) { bitField0_ |= 0x00000400; flag_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.0
-1
optional uint32 flag = 11;
public Builder clearFlag() { bitField0_ = (bitField0_ & ~0x00000400); flag_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "long getFlags();", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public abstract int flags();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public long getFlags() {\n }", "com.google.protobuf.UInt32Value getStatus();", "String getSpareFlag();", "public int getFlags();", "public int getFlags();", "public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }", "public void addDefaultFlag(byte flag)\n {\n defaultFlags |= flag;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "IntsRef getFlags();", "void mo54415a(int i, boolean z);", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "public void setFlag(RecordFlagEnum flag);", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "public RecordFlagEnum getFlag();", "private Bits32() {\r\n }", "public Flag() {\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "void mo4828a(C0152fo foVar, boolean z);", "public abstract C0631bt mo9251e(boolean z);", "void mo4829a(C0158fu fuVar);", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "void mo28195a(C5670a aVar, boolean z);", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "int getOneof1110();", "OptionalInt peek();", "void mo1488a(boolean z);", "public abstract void mo9254f(boolean z);", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public abstract void mo32006dL(boolean z);", "public abstract void mo32007dM(boolean z);", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "C3579d mo19694a(C3581f fVar) throws IOException;", "public abstract void mo9246b(C0707b bVar);", "void mo64153a(boolean z);", "void mo3305a(boolean z);", "void mo6661a(boolean z);", "void mo21071b(boolean z);", "int getBitAsInt(int index);", "void mo99838a(boolean z);", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "long mo19692a(C3586u uVar) throws IOException;", "public boolean hasVar111() {\n return fieldSetFlags()[112];\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "protected void setFlags(Parameters p, int flags) {\n\t\tif ((flags & ZF) == ZF) {\n\t\t\tdataspace.fZero = (p.result & ((((long) 1) << (p.size * 8)) - 1)) == 0;\n\t\t}\n\t\tif ((flags & SF) == SF) {\n\t\t\tdataspace.fSign = (p.result >> p.size * 8 - 1 & 1) == 1;\n\t\t}\n\t\tif ((flags & PF) == PF) {\n\t\t\t// parity flag = even number of 1s in lowest byte?\n\t\t\tlong temp = (p.result & 1) + (p.result >> 1 & 1) + (p.result >> 2 & 1) + (p.result >> 3 & 1)\n\t\t\t\t+ (p.result >> 4 & 1)\n\t\t\t\t+ (p.result >> 5 & 1) + (p.result >> 6 & 1) + (p.result >> 7 & 1);\n\t\t\tdataspace.fParity = temp % 2 == 0;\n\t\t}\n\t\tif ((flags & CF) == CF) {\n\t\t\t// carry flag = (n+1)th bit\n\t\t\tdataspace.fCarry = ((p.result >> p.size * 8) & 1) == 1;\n\t\t}\n\t\tif ((flags & OF) == OF) {\n\t\t\t// overflow flag = incorrect sign\n\t\t\tboolean aSign = ((p.a >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean bSign = ((p.b >> p.size * 8 - 1 & 1) == 1);\n\t\t\tboolean resultSign = ((p.result >> p.size * 8 - 1 & 1) == 1);\n\t\t\tdataspace.fOverflow = (aSign == bSign) && (resultSign != aSign);\n\t\t}\n\t\tif ((flags & AF) == AF) {\n\t\t\t// adjust / auxiliary carry flag = carry of bit 3, used for BCD only\n\t\t\t\n\t\t\t// This line is just plain wrong:\n\t\t\t// if (((p.result >> 4) & 1) == 1) {\n\t\t\t\n\t\t\t// This line is better, but fails in a few cases, e.g.:\n\t\t\t// MOV AL, 80h; SUB AL, 18h\n\t\t\t// and that can't be fixed easily because the information just isn't there due to\n\t\t\t// SUB inverting the second argument and then adding it.\n\t\t\tdataspace.fAuxiliary = ((p.result >> 4) & 1) != ((((p.a >> 4) & 1) + ((p.b >> 4) & 1)) & 1);\n\t\t}\n\t}", "void mo1492b(boolean z);", "public void setFlags(short flag) {\n\tflags = flag;\n }", "void mo21069a(boolean z);", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public Flag()\n {\n super(\"Flag\");\n }", "public abstract void mo4368a(int i, boolean z);", "public Flag(int x)\n\t{\n super(x);\n\t}", "void mo13377a(boolean z, C15943j c15943j);", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n public boolean hasFlag() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public boolean hasVar32() {\n return fieldSetFlags()[33];\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void mo12636a(boolean z);", "private int c(int paramInt)\r\n/* 38: */ {\r\n/* 39:39 */ if (paramInt >= 2) {\r\n/* 40:40 */ return 2 + (paramInt & 0x1);\r\n/* 41: */ }\r\n/* 42:42 */ return paramInt;\r\n/* 43: */ }", "public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}", "void mo98208a(boolean z);", "public abstract void mo9806a(int i, boolean z);", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public abstract void mo9245b(C0631bt btVar);", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public short getFlags() {\n\treturn flags;\n }", "int getOneof1072();", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "void mo28742b(boolean z, int i);", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "int getOneof1111();", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "long mo25074b();", "Uint32 getType();", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void mo56813b(@NonNull C4122e eVar);", "boolean optional();" ]
[ "0.6683264", "0.6288728", "0.621022", "0.61687416", "0.61424834", "0.5980652", "0.5954848", "0.59317815", "0.59215784", "0.58709127", "0.5807109", "0.5806431", "0.5757466", "0.5755971", "0.5755971", "0.5707628", "0.5687661", "0.56650454", "0.5648294", "0.56455976", "0.56425333", "0.5541814", "0.55376214", "0.5531211", "0.55132425", "0.55056643", "0.5505483", "0.5472513", "0.54635453", "0.545987", "0.54485726", "0.5440935", "0.5440784", "0.54329914", "0.5425495", "0.5425495", "0.54232687", "0.5417287", "0.54136837", "0.54045385", "0.54014754", "0.53837204", "0.5377117", "0.5370726", "0.5367525", "0.53632605", "0.5350634", "0.5349735", "0.53474915", "0.5340347", "0.5335051", "0.5332296", "0.53302914", "0.5326873", "0.53173745", "0.5317308", "0.53135264", "0.5312219", "0.5311862", "0.53117204", "0.5289032", "0.528799", "0.5273636", "0.5273507", "0.5268987", "0.5267542", "0.5265091", "0.52630633", "0.52618575", "0.5258578", "0.52394325", "0.5239261", "0.5238222", "0.5236931", "0.52346784", "0.52320975", "0.5231875", "0.52311367", "0.5228882", "0.52287126", "0.5225658", "0.5225434", "0.52236384", "0.52223825", "0.52213234", "0.52213234", "0.5214688", "0.52101374", "0.52034116", "0.5202414", "0.520136", "0.51969165", "0.5190311", "0.51712817", "0.5171261", "0.5164383", "0.5161672", "0.5160943", "0.51535", "0.5144102", "0.5141932" ]
0.0
-1
optional uint32 sessionId = 12;
@Override public boolean hasSessionId() { return ((bitField0_ & 0x00000800) == 0x00000800); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.5822018
45
optional uint32 sessionId = 12;
@Override public int getSessionId() { return sessionId_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.6296735
15
optional uint32 sessionId = 12;
public Builder setSessionId(int value) { bitField0_ |= 0x00000800; sessionId_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.56189626
71
optional uint32 sessionId = 12;
public Builder clearSessionId() { bitField0_ = (bitField0_ & ~0x00000800); sessionId_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID sessionId();", "int getSessionId();", "UUID getSessionId();", "public int getSessionId() {\n return sessionId_;\n }", "public short getSessionId() {\n return sessionId;\n }", "public int getSessionId() {\n return sessionId;\n }", "String getSessionId();", "String getSessionId();", "String getSessionId();", "String getSessionId();", "java.lang.String getSessionId();", "int getClientSessionID();", "public int getSessionId() {\n return sessionId_;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public void setSessionId(short sessionId) {\n this.sessionId = sessionId;\n }", "@Override\n public int getSessionId() {\n return sessionId_;\n }", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "void setSessionId(String sessionId);", "public int getSessionIdLength()\n\t{\n\t\treturn sessionIdLength;\n\t}", "public void setSessionId(int value) {\n this.sessionId = value;\n }", "com.google.protobuf.ByteString\n getSessionIDBytes();", "com.google.protobuf.ByteString\n getSessionIDBytes();", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n return sessionId;\n }", "public String sessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}", "public void setSessionId(long sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSessionIdBytes();", "public String getSessionId() {\n return sessionId;\n }", "String getSessionID();", "String getSessionID();", "@Override\n\t\tpublic String getRequestedSessionId() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }", "public void setSessionId(String sessionId)\r\n\t{\r\n\t\tthis.sessionId = sessionId;\r\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionId() {\n\t\treturn sessionId;\n\t}", "String getSessionId() {\n return this.sessionId;\n }", "public final String getSessionId() {\n return sessionId;\n }", "public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }", "@Override\n public boolean hasSessionId() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public void setSessionId(String sessionId)\n\t{\n\t\tthis.sessionId = Toolbox.trim(sessionId, 50);\n\t}", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSessionId(String sessionId) {\n this.sessionId = sessionId;\n }", "public abstract String getSessionId() throws RcsServiceException;", "String createSessionId(long seedTerm);", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "java.lang.String getSessionID();", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public String getSessionId() {\n return this.SessionId;\n }", "public interface SessionDetails extends WriteMarshallable {\n\n // a unique id used to identify this session, this field is by contract immutable\n UUID sessionId();\n\n // a unique id used to identify the client\n UUID clientId();\n\n @Nullable\n String userId();\n\n @Nullable\n String securityToken();\n\n @Nullable\n String domain();\n\n SessionMode sessionMode();\n\n @Nullable\n InetSocketAddress clientAddress();\n\n long connectTimeMS();\n\n <I> void set(Class<I> infoClass, I info);\n\n @NotNull\n <I> I get(Class<I> infoClass);\n\n @Nullable\n WireType wireType();\n\n byte hostId();\n\n @Override\n default void writeMarshallable(@NotNull WireOut w) {\n w.writeEventName(EventId.userId).text(userId())\n .writeEventName(EventId.domain).text(domain());\n if (sessionMode() != null)\n w.writeEventName(EventId.sessionMode).text(sessionMode().toString());\n w.writeEventName(EventId.securityToken).text(securityToken())\n .writeEventName(EventId.clientId).text(clientId().toString())\n .writeEventName(EventId.hostId).int8(hostId())\n .writeEventName(EventId.wireType).asEnum(wireType());\n }\n}", "long getPlayerId();", "public Builder setSessionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }", "public Builder setSessionId(int value) {\n \n sessionId_ = value;\n onChanged();\n return this;\n }", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public void setSessionId(String sessionId) {\n\t\tthis.sessionId = sessionId;\n\t}", "public boolean hasSessionId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public String getId() {\n\t\treturn _sessionId;\n\t}", "public Builder setSessionId(int value) {\n bitField0_ |= 0x00000800;\n sessionId_ = value;\n onChanged();\n return this;\n }", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "boolean hasSessionId();", "@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}", "public String getSessionId() {\n return this.sessionid;\n }", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "protected void m3605a(en enVar) throws RemoteException {\n if (TextUtils.isEmpty(sessionId)) {\n m3242c(2001, \"IllegalArgument: sessionId cannot be null or empty\");\n return;\n }\n try {\n enVar.m3049a(sessionId, (C0128d) this);\n } catch (IllegalStateException e) {\n m3243x(2001);\n }\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "private static String sessionId(String sessionID) {\n\t\t// setting the default value when argument's value is omitted\n\t\tif (sessionID == null) {\n\t\t\t// if the sessionID isn't specified, maybe we can still recover it somehow\n\t\t\treturn firstSessionId();\n\t\t} else {\n\t\t\t// nothing to do in this case; a SessionID WAS passed along, so just continue\n\t\t\t// using it\n\t\t\treturn sessionID;\n\t\t}\n\t}", "public void createSession(int uid);", "public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "public void enquireTimeout(Long sessionId);", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final long getRvSessionId() {\n return rvSessionId;\n }", "@Test\n void setSessionStateNoSessionId() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n\n // Act & Assert\n StepVerifier.create(managementChannel.setSessionState(null, sessionState, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.setSessionState(\"\", sessionState, LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }", "int getPlayerId();", "int getPlayerId();", "public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }", "public void setSessionCounter(long sessionCounter);", "public Builder setSessionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n sessionId_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.72524893", "0.70328677", "0.6972281", "0.68338305", "0.6788447", "0.66457224", "0.66011226", "0.66011226", "0.66011226", "0.66011226", "0.6472628", "0.6461475", "0.6406689", "0.6389632", "0.6374092", "0.6296735", "0.626718", "0.62312937", "0.6205937", "0.6149064", "0.6112186", "0.6112186", "0.6106046", "0.60921794", "0.60921794", "0.6090317", "0.60806745", "0.6075551", "0.60488194", "0.6024369", "0.59575176", "0.59499186", "0.59242845", "0.58852285", "0.58783025", "0.58783025", "0.5873439", "0.5872042", "0.58709466", "0.5867587", "0.5864935", "0.5864935", "0.5860085", "0.58501625", "0.5836427", "0.5822018", "0.57875276", "0.57743204", "0.5766009", "0.5755016", "0.5749011", "0.57485884", "0.5746255", "0.57378787", "0.57334656", "0.5724868", "0.57196593", "0.5718022", "0.5715649", "0.5703151", "0.5671694", "0.5667722", "0.5664531", "0.56633884", "0.56607735", "0.5648144", "0.5630908", "0.56243086", "0.56243086", "0.56242335", "0.56200826", "0.56189626", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5595775", "0.5575917", "0.55613863", "0.5558832", "0.5551391", "0.5533981", "0.5531234", "0.552405", "0.5478161", "0.54667187", "0.5459706", "0.54524565", "0.54498696", "0.54498696", "0.54464936", "0.5444301", "0.5419025", "0.5415281", "0.5413678", "0.5413678", "0.54019475", "0.5400644", "0.53995144", "0.5398939" ]
0.0
-1
Use TokenInfo.newBuilder() to construct.
private TokenInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Token() {\n }", "public Token() {\n }", "@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}", "private Token () { }", "public TokenInfo createToken(TokenCoreInfo coreInfo, String password);", "public Token() {\n mTokenReceivedDate = new Date();\n }", "private SemanticTokens(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}", "public Token() {\n token = new Random().nextLong();\n }", "public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWT.Builder getTokenBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getTokenFieldBuilder().getBuilder();\n }", "private TokenTransaction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "protected Token(Parcel in) {\n this.mAccessToken = in.readString();\n this.mRefreshToken = in.readString();\n this.mExpiresIn = (Long) in.readValue(Long.class.getClassLoader());\n this.mTokenType = in.readString();\n long tmpMTokenReceivedDate = in.readLong();\n this.mTokenReceivedDate = new Date(tmpMTokenReceivedDate);\n }", "public Token(T id, SecretManager<T> mgr) {\n password = mgr.createPassword(id);\n identifier = id.getBytes();\n kind = id.getKind();\n service = new Text();\n }", "public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }", "public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}", "public Token() {\n this.clitic = \"none\";\n }", "public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }", "public TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);", "private AuthInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "com.google.protobuf.ByteString\n getTokenBytes();", "public Token(byte[] identifier, byte[] password, Text kind, Text service) {\n this.identifier = (identifier == null)? new byte[0] : identifier;\n this.password = (password == null)? new byte[0] : password;\n this.kind = (kind == null)? new Text() : kind;\n this.service = (service == null)? new Text() : service;\n }", "private TokenSegment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setToken(Pokemon.RequestEnvelop.AuthInfo.JWT value) {\n if (tokenBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n token_ = value;\n onChanged();\n } else {\n tokenBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "private Token(ISubscriber inSubscriber,\n MarketDataRequest inRequest)\n {\n subscriber = inSubscriber;\n request = inRequest;\n }", "public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }", "public APIToken() {\n super();\n }", "Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder();", "public JavaTokenMaker() {\n\t}", "public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }", "public BStarTokenMaker() {\n\t\tsuper();\n\t}", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "AuthenticationTokenInfo authenticationTokenInfo(String headerToken);", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "public Builder setToken(\n String value) {\n copyOnWrite();\n instance.setToken(value);\n return this;\n }", "public Builder setToken(\n String value) {\n copyOnWrite();\n instance.setToken(value);\n return this;\n }", "public Builder setToken(\n String value) {\n copyOnWrite();\n instance.setToken(value);\n return this;\n }", "public static com.networknt.taiji.token.TokenTransactions.Builder newBuilder() {\n return new com.networknt.taiji.token.TokenTransactions.Builder();\n }", "public Token toScribeToken() {\n return new Token(oauthToken, oauthTokenSecret);\n }", "private com.google.protobuf.SingleFieldBuilder<\n Pokemon.RequestEnvelop.AuthInfo.JWT, Pokemon.RequestEnvelop.AuthInfo.JWT.Builder, Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder> \n getTokenFieldBuilder() {\n if (tokenBuilder_ == null) {\n tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.RequestEnvelop.AuthInfo.JWT, Pokemon.RequestEnvelop.AuthInfo.JWT.Builder, Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder>(\n getToken(),\n getParentForChildren(),\n isClean());\n token_ = null;\n }\n return tokenBuilder_;\n }", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }", "public Token(int lineNum, int tokenId, String tokenName)\n\t{\n\t\tthis.lineNum = lineNum;\n\t\tthis.tokenId = tokenId;\n\t\tthis.tokenName = tokenName;\n\t\ttokenIdtoName(tokenId);\n\t}", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }", "public AuthorizationToken(String token, String userName){\n this.token = token;\n this.userName = userName;\n }", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value;\n onChanged();\n return this;\n }", "public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }", "public Token createAuthorizationToken(User user);", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }", "Mono<GenericToken> getToken();", "private PlainTokenAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }", "private String newToken(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n return jwtUtils.generateToken(userDetails);\r\n }", "public Builder info(SecurityInfo info) {\n JodaBeanUtils.notNull(info, \"info\");\n this.info = info;\n return this;\n }", "private Token(int code)\n {\n myCode = code;\n }", "public String getToken();", "public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n onChanged();\n return this;\n }", "public Builder setToken(\n Pokemon.RequestEnvelop.AuthInfo.JWT.Builder builderForValue) {\n if (tokenBuilder_ == null) {\n token_ = builderForValue.build();\n onChanged();\n } else {\n tokenBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "private CSUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }", "public Builder clearToken() {\n if (tokenBuilder_ == null) {\n token_ = Pokemon.RequestEnvelop.AuthInfo.JWT.getDefaultInstance();\n onChanged();\n } else {\n tokenBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "public TinyTokenManager() throws IOException {\n init();\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder() {\n return token_;\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder() {\n if (tokenBuilder_ != null) {\n return tokenBuilder_.getMessageOrBuilder();\n } else {\n return token_;\n }\n }", "public OAuthRequestToken(Token token) {\n if (token == null) {\n return;\n }\n this.oauthToken = token.getToken();\n this.oauthTokenSecret = token.getSecret();\n }", "public Token(int start)\n {\n this.start = start;\n }", "public Token getToken() {\n return token;\n }", "void putToken(String name, String value);", "public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }", "public io.lightcone.data.types.TokenID.Builder getTokenFBuilder() {\n \n onChanged();\n return getTokenFFieldBuilder().getBuilder();\n }", "private SCUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Token(TokenCode code, OpType otype, DataType dtype, \n SymbolTableEntry entry, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _symbolTableEntry = entry;\n _lineNumber = line;\n _columnNumber = column;\n }", "public io.lightcone.data.types.TokenID.Builder getTokenIdBuilder() {\n \n onChanged();\n return getTokenIdFieldBuilder().getBuilder();\n }", "public StringBuilder createToken() throws IOException {\n /**\n * we need the url where we want to make an API call\n */\n URL url = new URL(\"https://api.scribital.com/v1/access/login\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n /**\n * set the required type, in this case it's a POST request\n */\n connection.setRequestMethod(\"POST\");\n\n /**\n * set the type of content, here we use a JSON type\n */\n connection.setRequestProperty(\"Content-Type\", \"application/json; utf-8\");\n connection.setDoOutput(true);\n\n /**\n * set the Timeout, will disconnect if the connection did not work, avoid infinite waiting\n */\n connection.setConnectTimeout(6000);\n connection.setReadTimeout(6000);\n\n /**\n * create the request body\n * here we need only the username and the api-key to make a POST request and to receive a valid token for the Skribble API\n */\n String jsonInputString = \"{\\\"username\\\": \\\"\" + username +\"\\\", \\\"api-key\\\":\\\"\" + api_key + \"\\\"}\";\n try(OutputStream os = connection.getOutputStream()){\n byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8);\n os.write(input,0, input.length);\n }\n\n /**\n * read the response from the Skriblle API which is a token in this case\n */\n try(BufferedReader br = new BufferedReader(\n new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {\n StringBuilder response = new StringBuilder();\n String responseLine = null;\n while ((responseLine = br.readLine()) != null) {\n response.append(responseLine.trim());\n Token = response;\n }\n }\n return Token;\n }", "public JsonOkHttpRequest(@NonNull Context context, @NonNull Type token) {\n super(context);\n this.typeToken = token;\n }", "public Token(TokenCode code, OpType otype, DataType dtype, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _lineNumber = line;\n _columnNumber = column;\n }", "public AccountInfo() {\n this(null, null);\n }" ]
[ "0.69102216", "0.68420535", "0.67732215", "0.6614031", "0.64261335", "0.6424594", "0.6392773", "0.6342624", "0.62204504", "0.61649424", "0.60609466", "0.60554314", "0.59920675", "0.59920675", "0.59920675", "0.59920675", "0.59920675", "0.5936004", "0.5914933", "0.58873403", "0.5878806", "0.5868925", "0.5853363", "0.58528775", "0.58511174", "0.58207947", "0.57844216", "0.5757699", "0.5751326", "0.57450867", "0.57440066", "0.5725083", "0.5717544", "0.5699755", "0.56871486", "0.56802744", "0.5670903", "0.5670903", "0.5670903", "0.5670903", "0.5670903", "0.5667147", "0.56480247", "0.56480247", "0.56480247", "0.5602306", "0.5602306", "0.5602306", "0.5584943", "0.557496", "0.55636865", "0.5556835", "0.5556835", "0.5556835", "0.5556835", "0.5556835", "0.5553595", "0.55436367", "0.55436367", "0.55436367", "0.5519693", "0.55013144", "0.54604316", "0.54592466", "0.54523087", "0.54481", "0.54481", "0.54481", "0.54481", "0.54481", "0.54481", "0.54425466", "0.5429479", "0.54149985", "0.540743", "0.53922886", "0.5388673", "0.5387352", "0.53821063", "0.53795415", "0.53766835", "0.53738016", "0.53660905", "0.5359959", "0.5357963", "0.5351213", "0.5337864", "0.53298277", "0.53292185", "0.5328924", "0.52937907", "0.529328", "0.5284496", "0.5280098", "0.5277364", "0.52750564", "0.52710897", "0.52650905", "0.5260857", "0.525871" ]
0.7643654
0
optional uint32 key = 1;
boolean hasKey();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.0
-1
optional uint32 key = 1;
int getKey();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.697101
2
optional bytes val = 2;
boolean hasVal();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.0
-1
optional bytes val = 2;
com.google.protobuf.ByteString getVal();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.64254403
0
Use ExtKeyInfo.newBuilder() to construct.
private ExtKeyInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeyEncryptionKeyInfo() {\n }", "OpenSSLKey mo134201a();", "public ECKey build() {\n\n\t\t\ttry {\n\t\t\t\tif (d == null && priv == null) {\n\t\t\t\t\t// Public key\n\t\t\t\t\treturn new ECKey(crv, x, y, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (priv != null) {\n\t\t\t\t\t// PKCS#11 reference to private key\n\t\t\t\t\treturn new ECKey(crv, x, y, priv, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\t\t\t\t}\n\n\t\t\t\t// Public / private key pair with 'd'\n\t\t\t\treturn new ECKey(crv, x, y, d, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tthrow new IllegalStateException(e.getMessage(), e);\n\t\t\t}\n\t\t}", "private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }", "private KeySpace(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }", "public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder() {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder();\n }", "public Builder setExtendedPublicKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n extendedPublicKey_ = value;\n onChanged();\n return this;\n }", "private exchange_key_rs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .build();\n }", "short generateKeyAndWrap(byte[] applicationParameter, short applicationParameterOffset, byte[] publicKey, short publicKeyOffset, byte[] keyHandle, short keyHandleOffset, byte info);", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "private exchange_key_rq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Object getAuthInfoKey();", "@NonNull\n @Override\n protected KeyInfo getKeyInfo(@NonNull final Key key) throws GeneralSecurityException {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n throw new KeyStoreAccessException(\"Unsupported API\" + Build.VERSION.SDK_INT + \" version detected.\");\n }\n\n final SecretKeyFactory factory = SecretKeyFactory.getInstance(key.getAlgorithm(), KEYSTORE_TYPE);\n final KeySpec keySpec = factory.getKeySpec((SecretKey) key, KeyInfo.class);\n\n return (KeyInfo) keySpec;\n }", "private EncodedAttributionKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId,\n long dataSize) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .setDataSize(dataSize)\n .build();\n }", "public KeyValuePair.Builder addInfoBuilder() {\n return getInfoFieldBuilder().addBuilder(\n KeyValuePair.getDefaultInstance());\n }", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "private EncryptionKey() {\n }", "public OzoneKey(KsmKeyInfo ksmKeyInfo) {\n this.volumeName = ksmKeyInfo.getVolumeName();\n this.bucketName = ksmKeyInfo.getBucketName();\n this.keyName = ksmKeyInfo.getKeyName();\n this.dataSize = ksmKeyInfo.getDataSize();\n this.keyLocations = ksmKeyInfo.getKeyLocationList();\n }", "public Key(BigInteger exponent, BigInteger modulus) {\n this.exponent = exponent;\n this.modulus = modulus;\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "private KeySpaces(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PaymentRecordKey() {\n super();\n }", "public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }", "public ContentKey() {}", "public Builder setKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n key_ = value;\n onChanged();\n return this;\n }", "void setAuthInfoKey(Object key);", "private KeyValue(Builder builder) {\n super(builder);\n }", "private OrderKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "KeyManager createKeyManager();", "private Aes128Encryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public X509KeyUsage(DERSequence a_extension)\n\t{\n\t\tsuper(a_extension);\n\t\tcreateValue();\n\t}", "public ECKey() {\n this(secureRandom);\n }", "private Encryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public QuarkusCodestartTestBuilder extension(ArtifactKey extension) {\n this.extensions.add(Extensions.toCoords(extension, null));\n return this;\n }", "private Builder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }", "public Builder setExtension(char key, String value) {\n/* 1645 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }", "@NonNull\n @Override\n protected KeyGenParameterSpec.Builder getKeyGenSpecBuilder(@NonNull final String alias) throws GeneralSecurityException {\n return getKeyGenSpecBuilder(alias, false);\n }", "com.google.protobuf.ByteString\n getClientKeyBytes();", "@NonNull\n @Override\n protected Key generateKey(@NonNull final KeyGenParameterSpec spec) throws GeneralSecurityException {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n throw new KeyStoreAccessException(\"Unsupported API\" + Build.VERSION.SDK_INT + \" version detected.\");\n }\n\n final KeyGenerator generator = KeyGenerator.getInstance(getEncryptionAlgorithm(), KEYSTORE_TYPE);\n\n // initialize key generator\n generator.init(spec);\n\n return generator.generateKey();\n }", "public X509ExtendedKeyManager getKeyManager();", "public MyKeyAdapter() {\r\n super();\r\n }", "com.google.protobuf.ByteString getPublicEciesKeyBytes();", "public KeyRecoveryInformation() {\n }", "public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "public com.android.build.gradle.internal.cxx.caching.ObjectFileKey.Builder getObjectFileKeyBuilder() {\n\n onChanged();\n return getObjectFileKeyFieldBuilder().getBuilder();\n }", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "private KeyValuePair(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Builder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }", "public DNSKEYRecord(final Name name, final int dclass, final long ttl,\n\t final int flags, final int proto, final int alg,\n\t final byte[] key)\n\t{\n\t\tsuper(name, Type.DNSKEY, dclass, ttl, flags, proto, alg, key);\n\t}", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "@NonNull\n @Override\n protected KeyGenParameterSpec.Builder getKeyGenSpecBuilder(@NonNull final String alias, @NonNull final boolean isForTesting)\n throws GeneralSecurityException {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n throw new KeyStoreAccessException(\"Unsupported API\" + Build.VERSION.SDK_INT + \" version detected.\");\n }\n\n final int purposes = KeyProperties.PURPOSE_DECRYPT | KeyProperties.PURPOSE_ENCRYPT;\n\n return new KeyGenParameterSpec.Builder(alias, purposes)\n .setBlockModes(BLOCK_MODE_CBC)\n .setEncryptionPaddings(PADDING_PKCS7)\n .setRandomizedEncryptionRequired(true)\n .setKeySize(ENCRYPTION_KEY_SIZE);\n }", "public Builder setKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n key_ = value;\n onChanged();\n return this;\n }", "public MultiKey() {}", "String newKey();", "public static Key generarKey() throws Exception{\n Key key = new SecretKeySpec(keyvalue, instancia); \n return key;\n }", "private Clearkey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Key generateAESKey(final byte[] key) {\n return new AesKey(key);\n }", "public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }", "String getComponentAesKey();", "public Init(String key, String desc) {\n super(key, desc);\n }", "private AuthInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public DiskEncryptionInfo() {\n }", "public interface KeyManager {\n CreateKeyResponse createKey(CreateKeyRequest createKeyRequest);\n RegisterKeyResponse registerKey(RegisterKeyRequest registerKeyRequest);\n RegisterKeyResponse registerAsymmetricKey(RegisterAsymmetricKeyRequest registerKeyRequest);\n DeleteKeyResponse deleteKey(DeleteKeyRequest deleteKeyRequest);\n TransferKeyResponse transferKey(TransferKeyRequest keyRequest);\n GetKeyAttributesResponse getKeyAttributes(GetKeyAttributesRequest keyAttributesRequest);\n SearchKeyAttributesResponse searchKeyAttributes(SearchKeyAttributesRequest searchKeyAttributesRequest);\n}", "public IDataKey(String key) {\n this(key, false);\n }", "public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }", "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "public GenEncryptionParams() {\n }", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public FuncTestKey() {\n super();\n }", "public void setExtensionKey(java.lang.String extensionKey) {\r\n this.extensionKey = extensionKey;\r\n }", "private DataKeys(String pKey) {\n key = pKey;\n }", "public kvClient.pb.Key.Builder getKBuilder() {\n return getKFieldBuilder().getBuilder();\n }", "private ExperimentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface OpenSSLKeyHolder {\n /* renamed from: a */\n OpenSSLKey mo134201a();\n}", "MapBuilder<K,V> keyInjection(Injection<K, byte[]> keyInjection);", "public DBRecordKey<gDBR> createKey() // <? extends DBRecord<?>>\n throws DBException\n {\n if (this.keyClass != null) {\n try {\n // this creates an empty key with no key fields\n Constructor<? extends DBRecordKey<gDBR>> kc = this.keyClass.getConstructor(new Class<?>[0]);\n return kc.newInstance(new Object[0]); // \"unchecked cast\"\n } catch (Throwable t) { // NoSuchMethodException, ...\n // Implementation error (should never occur)\n throw new DBException(\"Key Creation\", t);\n }\n }\n return null;\n }", "public static Key createEntity(EntityManager em) {\n Key key = new Key()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n return key;\n }", "public BankAccountKey() {\n\tsuper();\n}", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "public Builder setExtension(char key, String value) {\n try {\n _locbld.setExtension(key, value);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n return this;\n }", "static KeyExtractor.Factory noKey() {\n return KeyExtractors.NoKey::new;\n }", "KeyMetadata metadata();", "public Builder key(String key) {\n this.key = key;\n return this;\n }", "KeyIdPair createKeyIdPair();", "private MpegCommonEncryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public byte[] createKey(String keyName, byte[] keyValue, int size, String token) throws InternalSkiException {\n byte[] newKey = null;\n byte[] systemKey = getSystemKey();\n byte[] tokenKey = getTokenKey();\n ISki skiDao = getSkiDao();\n\n Token tkn = th.decodeToken(token, tokenKey);\n if (tkn!=null) {\n try {\n byte[] comboKey = SkiKeyGen.getComboKey(tkn.getKey(), systemKey);\n\n if (keyValue!=null) {\n newKey = keyValue;\n }\n if (newKey==null) {\n newKey = SkiKeyGen.generateKey(size);\n }\n\n byte[] encryptedKey = crypter.encrypt(newKey, comboKey);\n String strEncryptedKey = SkiUtils.b64encode(encryptedKey);\n int saved = skiDao.saveKeyPair(keyName, strEncryptedKey);\n if (saved!=1) {\n throw new InternalSkiException(\"Failed to save key pair to database! Check logs...\");\n }\n } catch (SkiException e) {\n log.warning(\"Unable to create new key. Access denied. Check logs for error: \" + e.getMessage());\n log.log(Level.WARNING, e.getMessage(), e);\n newKey = null;\n }\n } else {\n log.warning(\"Unable to decode token during key creation! Access denied.\");\n newKey = null;\n }\n return newKey;\n }", "public void testCreateKeyWithParentAndName() {\n Key parent = KeyFactory.createKey(kind, name);\n Key key = KeyFactory.createKey(parent, kind, name);\n assertEquals(name, key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(0L, key.getId());\n assertEquals(parent, key.getParent());\n }", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "ExportedKeyData makeKeyPairs(PGPKeyPair masterKey, PGPKeyPair subKey, String username, String email, String password) throws PGPException, IOException;", "public I13nDateSavingKey() {\n\tsuper();\n}", "com.google.protobuf.ByteString\n getKeyBytes();" ]
[ "0.6732487", "0.6144313", "0.5976671", "0.59343725", "0.5860553", "0.5858462", "0.5828705", "0.58207446", "0.5764892", "0.5761917", "0.5751804", "0.57228273", "0.5718323", "0.5667289", "0.5662832", "0.56462836", "0.56284356", "0.5617086", "0.56067073", "0.55721027", "0.55561936", "0.55551577", "0.5534315", "0.5530267", "0.5520345", "0.5491793", "0.5479845", "0.5463415", "0.54473746", "0.54326653", "0.54292387", "0.54152924", "0.54053974", "0.540436", "0.5396152", "0.5390479", "0.5389637", "0.5382609", "0.5381292", "0.5380685", "0.5376419", "0.53711474", "0.53526855", "0.5345766", "0.533272", "0.53230554", "0.53213745", "0.53155684", "0.5301844", "0.5285172", "0.5277221", "0.52704006", "0.52690154", "0.5268295", "0.5263917", "0.52604914", "0.52604914", "0.5241127", "0.5237765", "0.5222915", "0.5220192", "0.5216646", "0.5194327", "0.5182379", "0.5180413", "0.51611346", "0.5160572", "0.5153126", "0.5148286", "0.51457775", "0.5135806", "0.51123583", "0.5109452", "0.51084393", "0.5101347", "0.5101347", "0.5101347", "0.5098104", "0.5092821", "0.5085182", "0.5077824", "0.50734067", "0.506887", "0.5066977", "0.50596565", "0.5053015", "0.50461644", "0.5041997", "0.50276786", "0.5023694", "0.50202316", "0.50062746", "0.5006083", "0.5001231", "0.5000891", "0.49947867", "0.4988186", "0.4987775", "0.49836814", "0.4980953" ]
0.79611605
0
optional uint32 key = 1;
@Override public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.0
-1
optional uint32 key = 1;
@Override public int getKey() { return key_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.60688114
50
optional bytes val = 2;
@Override public boolean hasVal() { return ((bitField0_ & 0x00000002) == 0x00000002); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.0
-1
optional bytes val = 2;
@Override public com.google.protobuf.ByteString getVal() { return val_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.5379314
46
optional uint32 key = 1;
@Override public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.0
-1
optional uint32 key = 1;
@Override public int getKey() { return key_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.60076135
55
optional uint32 key = 1;
public Builder setKey(int value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.0
-1
optional uint32 key = 1;
public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short key();", "int getKey();", "int getKey();", "public int getKey(){\n return key;\n }", "String key();", "public int get(int key) {\n return 1;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "void setKey(int key);", "short getDefaultKeyIx();", "String newKey();", "T key();", "public char getKey(){ return key;}", "T getRandomKey();", "long nextUniqueKey() throws IOException;", "byte[] getKey();", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void setKey(int key);", "public void setKey(int key);", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "K key();", "K key();", "public void key(){\n }", "public int getKey() {\r\n return key;\r\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "int getInt(String key);", "public CaesarCipherOne(int key) {this.key=key;}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getMinKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey(int i);", "public Integer key() {\n return key;\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "int getInt( String key, int def);", "int getKeySize();", "public MultiKey() {}", "public int keyId() {\n return keyId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "void keySequenceHardFailure();", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public Key min();", "Integer get_add(Key key, int mod);", "abstract public String getKey();", "public String getHighestChromKey();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "protected int firstIndex(Object key)\r\n {\r\n return key.hashCode() & mask;\r\n }", "int getKey() {\n return this.key;\n }", "public int getKey() {\n return key;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "void setKey(int i, int key);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "private void setKey() {\n\t\t \n\t}", "OpenSSLKey mo134201a();", "KeyIdPair createKeyIdPair();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "@Test\n\tpublic void hashCodeNullSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(LONG_ZERO);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n default String getKey(){\n return key();\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public Integer key() {\n return this.key;\n }", "Object getKey();", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "BListKey getKey();", "private int getHash(Object key) {\n return key.hashCode();\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private String key() {\n return \"secret\";\n }", "int getProductKey();", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "C key();", "public ECP getKGCRandomKey(){return R;}" ]
[ "0.71375227", "0.697101", "0.697101", "0.67933923", "0.6743738", "0.66713434", "0.6621598", "0.6528911", "0.65279216", "0.64269364", "0.64060396", "0.6391877", "0.63707554", "0.63585675", "0.6355533", "0.63493794", "0.63445437", "0.62992847", "0.6265538", "0.62542796", "0.62542796", "0.622734", "0.6222072", "0.6222072", "0.62155044", "0.62120837", "0.619472", "0.619472", "0.6182703", "0.6173401", "0.61628014", "0.6158209", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61526823", "0.61252517", "0.6123627", "0.6108138", "0.61062473", "0.6090538", "0.60688114", "0.60512555", "0.60337424", "0.60272884", "0.60093904", "0.60076135", "0.60068697", "0.60067403", "0.60067403", "0.60067403", "0.60067403", "0.599629", "0.5991217", "0.598448", "0.5980845", "0.59806615", "0.5976116", "0.5973875", "0.5973875", "0.5967003", "0.5961767", "0.5961495", "0.5955382", "0.5953708", "0.59518623", "0.59203774", "0.59151775", "0.59150785", "0.591265", "0.58937055", "0.5892273", "0.5892273", "0.5892273", "0.5887374", "0.5877859", "0.5872324", "0.58707744", "0.5865663", "0.58548516", "0.5841023", "0.5835944", "0.5830668", "0.582988", "0.5820158", "0.5818034", "0.5817217", "0.5813899", "0.5812902", "0.5808883", "0.580723", "0.5804344" ]
0.0
-1
optional bytes val = 2;
@Override public boolean hasVal() { return ((bitField0_ & 0x00000002) == 0x00000002); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.0
-1
optional bytes val = 2;
@Override public com.google.protobuf.ByteString getVal() { return val_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.5322328
56
optional bytes val = 2;
public Builder setVal(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; val_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.559467
19
optional bytes val = 2;
public Builder clearVal() { bitField0_ = (bitField0_ & ~0x00000002); val_ = getDefaultInstance().getVal(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getVal();", "public Builder setValBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "ByteConstant createByteConstant();", "public abstract void mo4360a(byte b);", "@Override\n public byte byteValue() {\n return value;\n }", "com.google.protobuf.ByteString\n getValBytes();", "public Byte getByteAttribute();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public abstract byte read_octet();", "private byte getValue() {\n\t\treturn value;\n\t}", "byte mo30283c();", "public abstract void accept(byte value);", "public abstract void mo9798a(byte b);", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "int getOneof1072();", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public Builder setVal(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }", "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private void setGetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 2;\n pattern_ = value.toStringUtf8();\n }", "@Deprecated\n/* */ public byte getValue() {\n/* 58 */ return this.value;\n/* */ }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setCriteria(Byte value) {\n set(12, value);\n }", "private byte[] ionBytes(IonValue val)\n {\n IonDatagram dg = system().newDatagram(val);\n return dg.getBytes();\n }", "byte[] byteValue() {\n\treturn data;\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public byte type() {\n return (byte) value;\n }", "public byte read(int param1) {\n }", "int getOneof1110();", "int getLowBitLength();", "public byte value() {\n return value;\n }", "public Byte getIsDefault() {\n return (Byte) get(3);\n }", "void mo50321b(C18924b bVar);", "public Vlen_t() {}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public int getTypeParameterBoundIndex() {\n/* 377 */ return (this.value & 0xFF00) >> 8;\n/* */ }", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "byte mo25264b(int i);", "public static long setByte(long field, int pos, short value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n switch(pos) {\n case 1:\n field = field & 0xFFFFFFFFFFFFFF00l;\n break;\n case 2:\n field = field & 0xFFFFFFFFFFFF00FFl;\n break;\n case 3:\n field = field & 0xFFFFFFFFFF00FFFFl;\n break;\n case 4:\n field = field & 0xFFFFFFFF00FFFFFFl;\n break;\n case 5:\n field = field & 0xFFFFFF00FFFFFFFFl;\n break;\n case 6:\n field = field & 0xFFFF00FFFFFFFFFFl;\n break;\n case 7:\n field = field & 0xFF00FFFFFFFFFFFFl;\n break;\n case 8:\n field = field & 0x00FFFFFFFFFFFFFFl;\n break;\n }\n\n return (field | (((long) value) << (8* (pos-1))));\n }", "public int getUByte() { return bb.get() & 0xff; }", "public abstract void mo9246b(C0707b bVar);", "byte toByteValue() {\n return (byte) value;\n }", "protected abstract T getValue(ByteBuffer b);", "public byte getValue() {\n return value;\n }", "int getHighBitLength();", "byte decodeByte();", "@Override\n public com.google.protobuf.ByteString getVal() {\n return val_;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public abstract void mo9245b(C0631bt btVar);", "void writeByte(byte value);", "C3579d mo19694a(C3581f fVar) throws IOException;", "@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public void setOctet(int position, int value)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n\n value = value > 255 ? 255 : value;\n address[0] = value < 0 ? 0 : value;\n }", "void mo18322a(C7252b bVar);", "@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}", "void mo30633b(int i, String str, byte[] bArr);", "public void mo23981a(C4321b bVar) {\n }", "public abstract byte zzfv(int i);", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "LspType(int val) {\n value = val;\n }", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public Builder setField1011Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1011_ = value;\n onChanged();\n return this;\n }", "public int setValue (int val);", "com.google.protobuf.ByteString\n getField1234Bytes();", "void mo7381b(C1320b bVar) throws RemoteException;", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }", "byte getEByte();", "public Builder setField1111Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1111_ = value;\n onChanged();\n return this;\n }", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "protected void setP1(byte p1) {\n\theader[2] = p1;\n }", "void mo100442a(C40429b bVar);", "public int a(int var1, int var2)\r\n {\r\n byte var3 = -1;\r\n\r\n switch (var2)\r\n {\r\n case 0:\r\n var3 = 22;\r\n break;\r\n\r\n case 1:\r\n var3 = 23;\r\n break;\r\n\r\n case 2:\r\n var3 = 24;\r\n }\r\n\r\n if (var3 == -1)\r\n {\r\n var3 = 1;\r\n }\r\n\r\n return var3;\r\n }", "private void setPutBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n patternCase_ = 3;\n pattern_ = value.toStringUtf8();\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "public static int offsetBits_dataType() {\n return 0;\n }", "public interface C0764b {\n}", "String byteOrBooleanWrite();", "public Builder setValueBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public void mo32543a(C6744b bVar) {\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getOneof2128();", "public Builder setField1022Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1022_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64254403", "0.6028375", "0.60276693", "0.60276693", "0.60276693", "0.5925616", "0.5904463", "0.5878547", "0.5864367", "0.5754649", "0.5740374", "0.57378095", "0.57290393", "0.5717051", "0.56961924", "0.5680318", "0.5679324", "0.5663442", "0.56437933", "0.559467", "0.5587463", "0.5547911", "0.55429834", "0.55429834", "0.55429834", "0.5540351", "0.55110943", "0.5508499", "0.5487134", "0.5484412", "0.5473638", "0.5452629", "0.5441079", "0.5440999", "0.54371774", "0.5435219", "0.5430795", "0.54180807", "0.54121715", "0.541095", "0.5407893", "0.5393085", "0.53840035", "0.53820014", "0.53815633", "0.53805", "0.5379314", "0.53748614", "0.537398", "0.53677946", "0.53586817", "0.53446066", "0.5342199", "0.5327917", "0.53268456", "0.5322405", "0.5322328", "0.531975", "0.53194654", "0.5315309", "0.53126013", "0.53064257", "0.52994967", "0.5294268", "0.52864355", "0.5282321", "0.52786857", "0.52725476", "0.5266983", "0.5259668", "0.52573115", "0.5255361", "0.5251", "0.5249778", "0.5249691", "0.5242914", "0.5230169", "0.52284294", "0.52165884", "0.52160853", "0.5205893", "0.5205893", "0.5205893", "0.5204509", "0.52039516", "0.5203336", "0.51865184", "0.5179769", "0.5176917", "0.5174729", "0.51722777", "0.51722777", "0.51716334", "0.5170326", "0.5170008", "0.5165893", "0.5162935", "0.51618373", "0.51603824", "0.5157861", "0.51554954" ]
0.0
-1
optional uint32 clientIpV4 = 3; IPV4
boolean hasClientIpV4();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7889382", "0.7338601", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.7543848
3
optional uint32 clientIpV4 = 3; IPV4
int getClientIpV4();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.79296565", "0.7889382", "0.7543848", "0.7338601", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.8419241
0
optional bytes clientIpV6 = 4; IPV6
boolean hasClientIpV6();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.76152515", "0.7581599", "0.7373273", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.7860556
1
optional bytes clientIpV6 = 4; IPV6
com.google.protobuf.ByteString getClientIpV6();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.7860556", "0.76152515", "0.7581599", "0.7373273", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.852082
0
Use ClientIpInfo.newBuilder() to construct.
private ClientIpInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "com.google.protobuf.ByteString getIpBytes();", "private IP(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ClientManager(String ipAddress) {\n this.ipAddress = ipAddress;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "public Builder setIp(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ip_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000100);\n ip_ = 0;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000002);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000004);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000001);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public AuditDataBuilder clientIpAddress(final String clientIpAddress) {\n this.clientIpAddress = clientIpAddress;\n return this;\n }", "public String getClientIpAddress() {\n return clientIpAddress;\n }", "public Builder clearIp() {\n ip_ = getDefaultInstance().getIp();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "private ResGetVipInfoMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ip_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getAgentIPBytes();", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "public Builder clearIp() {\n \n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public Builder clearIp() {\n \n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public String getClientIp() {\n return clientIp;\n }", "public void setClientIp(String clientIp) {\n this.clientIp = clientIp == null ? null : clientIp.trim();\n }", "public String getClientip() {\n return clientip;\n }", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public IPAddressFormatter<I> build() {\n return constructor.create(style, upperCase, withIPv4End, encloseInBrackets);\n }", "public void setClientip(String clientip) {\n this.clientip = clientip == null ? null : clientip.trim();\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public String getIp();", "public Builder clearInIp() {\n copyOnWrite();\n instance.clearInIp();\n return this;\n }", "public Builder clearInIp() {\n copyOnWrite();\n instance.clearInIp();\n return this;\n }", "public Builder clearIp() {\n copyOnWrite();\n instance.clearIp();\n return this;\n }", "public Builder clearIp() {\n copyOnWrite();\n instance.clearIp();\n return this;\n }", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ip_ = value;\n onChanged();\n return this;\n }", "public EthernetStaticIP() {\n }", "String getIp();", "String getIp();", "public Builder setClientinfo(io.emqx.exhook.ClientInfo value) {\n if (clientinfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n clientinfo_ = value;\n onChanged();\n } else {\n clientinfoBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "int getIp();", "int getIp();", "int getIp();", "public String getIp() {\r\n return ip;\r\n }", "com.google.protobuf.ByteString getClientIpV6();", "public String getIp() {\n return ip;\n }", "public IpConfigInfoExample() {\r\n oredCriteria = new ArrayList<>();\r\n }", "public String getIp() {\n Object ref = ip_;\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 ip_ = s;\n return s;\n }\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "public io.emqx.exhook.ClientInfo.Builder getClientinfoBuilder() {\n \n onChanged();\n return getClientinfoFieldBuilder().getBuilder();\n }", "public void setIpAddress(String ipAddress) {\n this.ipAddress = ipAddress;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public int getIp() {\n return ip_;\n }", "public Builder mergeClientinfo(io.emqx.exhook.ClientInfo value) {\n if (clientinfoBuilder_ == null) {\n if (clientinfo_ != null) {\n clientinfo_ =\n io.emqx.exhook.ClientInfo.newBuilder(clientinfo_).mergeFrom(value).buildPartial();\n } else {\n clientinfo_ = value;\n }\n onChanged();\n } else {\n clientinfoBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DownloadClient(String hostIP) {\n\t\tthis.IP = hostIP;\n\t}", "int getInIp();", "int getInIp();", "public void setClientInfo(ClientInfo clientInfo) {\n this.clientInfo = clientInfo;\n }", "public EndpointDetail withIpAddress(String ipAddress) {\n this.ipAddress = ipAddress;\n return this;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }" ]
[ "0.6271553", "0.6209551", "0.6209551", "0.6040656", "0.6008762", "0.59721446", "0.5912538", "0.5912538", "0.58645153", "0.5862833", "0.5862833", "0.58626354", "0.5826917", "0.57615346", "0.5753764", "0.5748374", "0.5748374", "0.5748374", "0.5748374", "0.5748374", "0.5738891", "0.5737255", "0.57314855", "0.5717707", "0.56978434", "0.5686741", "0.5685152", "0.56761575", "0.5637695", "0.5598814", "0.55984235", "0.55963314", "0.55846876", "0.5577554", "0.55764484", "0.5575528", "0.5569973", "0.5508001", "0.55024326", "0.55008656", "0.54432374", "0.54432374", "0.543719", "0.5426856", "0.54224426", "0.5414612", "0.5414612", "0.5414612", "0.5414612", "0.5414612", "0.5414612", "0.5414612", "0.5414612", "0.54075044", "0.5397234", "0.5396994", "0.538715", "0.53451", "0.5329736", "0.5313013", "0.5311203", "0.5311203", "0.5310063", "0.5310063", "0.530964", "0.530964", "0.53013235", "0.53007716", "0.53007716", "0.52624434", "0.5253491", "0.5253491", "0.52493197", "0.5219055", "0.5219055", "0.5219055", "0.52181315", "0.5211174", "0.5205384", "0.5203181", "0.52027905", "0.5200824", "0.5200824", "0.5200196", "0.51985204", "0.5197352", "0.5193572", "0.5193572", "0.5184602", "0.5157837", "0.51484877", "0.51456225", "0.51456225", "0.51392365", "0.51309764", "0.5127223", "0.5127223", "0.5127223", "0.5127223", "0.5127223" ]
0.76518667
0
optional uint32 clientIpV4 = 3; IPV4
@Override public boolean hasClientIpV4() { return ((bitField0_ & 0x00000004) == 0x00000004); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7889382", "0.7543848", "0.7338601", "0.7240213", "0.70017266", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.6962977
7
optional uint32 clientIpV4 = 3; IPV4
@Override public int getClientIpV4() { return clientIpV4_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.7889382", "0.7543848", "0.7338601", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.79296565
1
optional bytes clientIpV6 = 4; IPV6
@Override public boolean hasClientIpV6() { return ((bitField0_ & 0x00000008) == 0x00000008); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.76152515", "0.7581599", "0.7373273", "0.7370309", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.7341941
6
optional bytes clientIpV6 = 4; IPV6
@Override public com.google.protobuf.ByteString getClientIpV6() { return clientIpV6_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.7581599", "0.7373273", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.76152515
2
optional uint32 clientIpV4 = 3; IPV4
@Override public boolean hasClientIpV4() { return ((bitField0_ & 0x00000004) == 0x00000004); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7889382", "0.7543848", "0.7338601", "0.7240213", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.70017266
6
optional uint32 clientIpV4 = 3; IPV4
@Override public int getClientIpV4() { return clientIpV4_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7543848", "0.7338601", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.7889382
2
optional uint32 clientIpV4 = 3; IPV4
public Builder setClientIpV4(int value) { bitField0_ |= 0x00000004; clientIpV4_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public Builder clearClientIpV4() {\n bitField0_ = (bitField0_ & ~0x00000004);\n clientIpV4_ = 0;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7889382", "0.7543848", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61609674", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.7338601
4
optional uint32 clientIpV4 = 3; IPV4
public Builder clearClientIpV4() { bitField0_ = (bitField0_ & ~0x00000004); clientIpV4_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getClientIpV4();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "boolean hasClientIpV4();", "public Builder setClientIpV4(int value) {\n bitField0_ |= 0x00000004;\n clientIpV4_ = value;\n onChanged();\n return this;\n }", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getIp();", "int getIp();", "int getIp();", "int getInIp();", "int getInIp();", "com.google.protobuf.ByteString getClientIpV6();", "public boolean isIpv4() {\n return isIpv4;\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "int getS1Ip();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "String getIp();", "String getIp();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "Ip4Address interfaceIpAddress();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getIp();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Nullable public abstract String ipAddress();", "public int getIp() {\n return ip_;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "com.google.protobuf.ByteString\n getIpBytes();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "boolean hasClientIpV6();", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getAgentIP();", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "String getRemoteIpAddress();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public Ip4Socket(int proto) {\n\t\tsuper(Socket.PF_INET,Socket.SOCK_RAW,proto);\n\t}", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public IPv4 getAddress() {\n return this.address;\n }", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getClientip() {\n return clientip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return (String) get(24);\n }", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public String getIp(){\n\treturn ip;\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public InetAddress getIP();", "public String getIp() {\r\n return ip;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getVIP();" ]
[ "0.8419241", "0.79296565", "0.7889382", "0.7543848", "0.7338601", "0.7240213", "0.70017266", "0.6962977", "0.66869664", "0.66869664", "0.66869664", "0.667982", "0.667982", "0.65929395", "0.6437544", "0.6413589", "0.6297525", "0.62949115", "0.6291767", "0.62893426", "0.62828267", "0.6282534", "0.6282534", "0.62800634", "0.62546325", "0.62539715", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.6252889", "0.62031037", "0.6178899", "0.61445636", "0.61340284", "0.60887015", "0.6080468", "0.60794204", "0.60683376", "0.60651356", "0.6041551", "0.6035893", "0.6035893", "0.6035459", "0.5988974", "0.59793574", "0.5971624", "0.59297675", "0.5927626", "0.5919271", "0.5915536", "0.59030706", "0.58849394", "0.581777", "0.58164984", "0.58164984", "0.58154774", "0.58138466", "0.5778789", "0.57682186", "0.57554305", "0.57554305", "0.57554305", "0.5753997", "0.5743358", "0.57382137", "0.5736754", "0.5735462", "0.57289666", "0.5726587", "0.5726587", "0.57050854", "0.57049346", "0.57049346", "0.56920195", "0.56920195", "0.5676016", "0.5675445", "0.5670763", "0.5670563", "0.56493783", "0.5628418", "0.5621592", "0.56089175", "0.560089", "0.5590518", "0.5590034", "0.55873257", "0.5587166", "0.55821383", "0.55788845", "0.55740154", "0.5567581", "0.5563912", "0.55480427", "0.55480427", "0.55461895" ]
0.61609674
36
optional bytes clientIpV6 = 4; IPV6
@Override public boolean hasClientIpV6() { return ((bitField0_ & 0x00000008) == 0x00000008); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.76152515", "0.7581599", "0.7373273", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.7370309
5
optional bytes clientIpV6 = 4; IPV6
@Override public com.google.protobuf.ByteString getClientIpV6() { return clientIpV6_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.76152515", "0.7373273", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.7581599
3
optional bytes clientIpV6 = 4; IPV6
public Builder setClientIpV6(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; clientIpV6_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "public Builder clearClientIpV6() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clientIpV6_ = getDefaultInstance().getClientIpV6();\n onChanged();\n return this;\n }", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.76152515", "0.7581599", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.6670131", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.7373273
4
optional bytes clientIpV6 = 4; IPV6
public Builder clearClientIpV6() { bitField0_ = (bitField0_ & ~0x00000008); clientIpV6_ = getDefaultInstance().getClientIpV6(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getClientIpV6();", "boolean hasClientIpV6();", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "@Override\n public com.google.protobuf.ByteString getClientIpV6() {\n return clientIpV6_;\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean hasClientIpV6() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "java.lang.String getIpv6();", "public boolean ipv6Enabled();", "com.google.protobuf.ByteString\n getIpv6Bytes();", "int getClientIpV4();", "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "boolean hasClientIpV4();", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIpv6Bytes() {\n java.lang.Object ref = ipv6_;\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 ipv6_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "@SystemApi\n public interface ConfigRequestIpv6PcscfServer extends IkeConfigRequest {\n /**\n * Retrieves the requested IPv6 P_CSCF server address\n *\n * @return The requested P_CSCF server address, or null if no specific P_CSCF server was\n * requested\n */\n @Nullable\n Inet6Address getAddress();\n }", "int getInIp();", "int getInIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public TeIpv6() {\n }", "int getIp();", "int getIp();", "int getIp();", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "String getIp();", "String getIp();", "public void enableIpv6(boolean val);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int getS1Ip();", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "com.google.protobuf.ByteString getIpBytes();", "public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) {\n\t\tIPv6AddressCreator creator = getIPv6Network().getAddressCreator();\n\t\treturn creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */\n\t}", "java.lang.String getIpv4();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static byte[] parseIntArrayToIP(int[] ip6) {\n ByteBuffer bb = ByteBuffer.allocate(Normal._16).order(ByteOrder.LITTLE_ENDIAN);\n for (int i : ip6) {\n bb.putInt(i);\n }\n return bb.array();\n }", "public String getIp();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "public Builder clearIpv6() {\n \n ipv6_ = getDefaultInstance().getIpv6();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "com.google.protobuf.ByteString\n getS6Bytes();", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getRemoteIpAddress();", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Ip4Address interfaceIpAddress();", "public JsonArray getFixedIPv6List() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/ipv6fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv6addr,duid,ipv6prefix,ipv6prefix_bits,network,comment,disable,name,address_type\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "java.lang.String getAgentIP();", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public void setSrcIp(long theIp)\n\t{\n\t\tif(myIPPacket.isIPv4())\n\t\t{\n\t\t\t((IPv4Packet) myIPPacket).setSrcIp(theIp);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalPacketException(\"underlying IP protocol is IPv6\");\n\t\t}\n\t}", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "java.lang.String getDestinationIp();", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Nullable\n Inet6Address getAddress();", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "@Nullable public abstract String ipAddress();", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public String getUpnpExternalIpaddress();", "String getIpDst();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "com.google.protobuf.ByteString\n getIpBytes();", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "public Long get_nat46v6mtu() throws Exception {\n\t\treturn this.nat46v6mtu;\n\t}", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "byte[] getReplyAddress();", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IPv6Header(int payload, String sourceAddress, String destAddress) {\n this();\n setSetting(Setting.PAYLOAD_LENGTH,new Integer(payload));\n setSetting(Setting.SOURCE_ADDRESS,Utils.parseAddress(sourceAddress));\n setSetting(Setting.DESTINATION_ADDRESS,Utils.parseAddress(destAddress));\n }" ]
[ "0.852082", "0.7860556", "0.76152515", "0.7581599", "0.7373273", "0.7370309", "0.7341941", "0.73397976", "0.6979384", "0.6875441", "0.6863431", "0.6823476", "0.66500586", "0.65518767", "0.65364903", "0.64303553", "0.63503754", "0.63183546", "0.6311957", "0.6298807", "0.6264267", "0.6216009", "0.61326844", "0.61326844", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60704833", "0.5982985", "0.5982985", "0.5982985", "0.5936286", "0.5925304", "0.59209985", "0.5912629", "0.5912629", "0.59045213", "0.5899403", "0.5845595", "0.5826849", "0.5804034", "0.57851505", "0.5773386", "0.57560253", "0.5749216", "0.5745422", "0.5745422", "0.5722951", "0.57217383", "0.5719553", "0.57160497", "0.5690686", "0.5685154", "0.56533176", "0.5650294", "0.56473356", "0.5635737", "0.56346494", "0.5626747", "0.5610039", "0.559494", "0.5558685", "0.55533856", "0.55533856", "0.55448747", "0.55366516", "0.55315095", "0.55214405", "0.5508567", "0.5508567", "0.5485661", "0.54609036", "0.54302406", "0.54253817", "0.5418986", "0.54178476", "0.54171807", "0.53974766", "0.5373572", "0.5370346", "0.5363089", "0.5353877", "0.5330012", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.53228146", "0.532056", "0.5319792", "0.5319446", "0.5316814", "0.5316519", "0.53135705", "0.5310609" ]
0.6670131
12
Use RetryInfo.newBuilder() to construct.
private RetryInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RetryOptions(){\n this(DEFAULT_SHOULD_RETRY, DEFAULT_MAX_RETRIES, DEFAULT_DELAY);\n }", "public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }", "public interface RetryContext\n{\n String FAILED_RECEIVER = \"failedReceiver\";\n String FAILED_DISPATCHER = \"failedDispatcher\";\n String FAILED_REQUESTER = \"failedRequester\";\n\n /**\n * @return a read-only meta-info map or an empty map, never null.\n */\n Map getMetaInfo();\n\n void setMetaInfo(Map metaInfo);\n\n MuleMessage[] getReturnMessages();\n\n MuleMessage getFirstReturnMessage();\n\n void setReturnMessages(MuleMessage[] returnMessages);\n\n void addReturnMessage(MuleMessage result);\n\n String getDescription();\n\n /**\n * The most recent failure which prevented the context from validating the connection. Note that the method may\n * return null. Instead, the {@link #isOk()} should be consulted first.\n *\n * @return last failure or null\n */\n Throwable getLastFailure();\n\n /**\n * Typically called by validation logic to mark no problems with the current connection. Additionally,\n * clears any previous failure set.\n */\n void setOk();\n\n /**\n * Typically called by validation logic to mark a problem and an optional root cause.\n *\n * @param lastFailure the most recent failure, can be null\n */\n void setFailed(Throwable lastFailure);\n\n /**\n * Note that it's possible for an implementation to return false and have no failure specified, thus\n * the subsequent {@link #getLastFailure()} may return null.\n *\n * @return true if no problems detected before\n */\n boolean isOk();\n}", "@Override\n public void onRetry(int retryNo) {\n }", "public TransactionTemplateRetrying getTransactionTemplateRetrying(final int retries) {\n return new TransactionTemplateRetrying(retries);\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "public _cls_cs_retries0() {\r\n}", "private RetryPolicy simpleRetryPolicy() {\n\n Map<Class<? extends Throwable>, Boolean> exceptionsMaps = new HashMap<>();\n exceptionsMaps.put(RecoverableDataAccessException.class, true);\n exceptionsMaps.put(IllegalArgumentException.class, false);\n\n SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(3, exceptionsMaps, true);\n return simpleRetryPolicy;\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "public interface RetryCallback {\n void retry();\n}", "public interface Retryer {\r\n /**\r\n * Retry the execution wrapped in {@link Callable} when the specified condition matched.\r\n *\r\n * @param <T>\r\n * @param retryableTask\r\n * @return\r\n * @throws Exception\r\n */\r\n <T> T callWithRetry(Callable<T> retryableTask) throws Exception;\r\n\r\n /**\r\n * Returns an instance of interfaceType that delegates all method calls to\r\n * the target object, enforcing the retry policy on each call.\r\n *\r\n * @param <T>\r\n * @param target\r\n * @param interfaceType\r\n * @return\r\n */\r\n <T> T newProxy(T target, Class<T> interfaceType);\r\n}", "static RetryPolicy getDefaultRetry() {\n return new ExponentialBackoffRetry(\n CuratorUtils.DEFAULT_CURATOR_POLL_DELAY_MS, CuratorUtils.DEFAULT_CURATOR_MAX_RETRIES);\n }", "public DefaultHttpRequestRetryHandler() {\n this(3);\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "private ExperimentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "private GenericRefreshResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public native void setDefaultRetryTimeout (long retryTimeout) throws IOException,IllegalArgumentException;", "@IntRange(from = 0L) long interval(int retryCount, long elapsedTime);", "void doRetry();", "public void incrementRetryCount() {\n this.retryCount++;\n }", "public Resender(RetryPolicy retryPolicy) {\n this.retryPolicy = retryPolicy;\n }", "public void markRequestRetryCreate() throws JNCException {\n markLeafCreate(\"requestRetry\");\n }", "public void addRequestRetry() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"request-retry\",\n null,\n childrenNames());\n }", "public Object construct() {\n try {\n Object res;\n\n res = mTarget.invokeTimeout(mMethodName, mParams, mTimeout);\n return res;\n }\n catch (TokenFailure ex) {\n return ex;\n }\n catch (RPCException ex) {\n return ex;\n }\n catch (XMPPException ex) {\n return ex;\n }\n }", "private PingResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface IRetryPolicy {\n // this capture all the retry logic\n // TODO: design decision should this return a single or an observable?\n\n /// <summary>\n /// Method that is called to determine from the policy that needs to retry on the exception\n /// </summary>\n /// <param name=\"exception\">Exception during the callback method invocation</param>\n /// <param name=\"cancellationToken\"></param>\n /// <returns>If the retry needs to be attempted or not</returns>\n Mono<ShouldRetryResult> shouldRetry(Exception e);\n\n int getRetryCount();\n\n void incrementRetry();\n\n void captureStartTimeIfNotSet();\n\n void updateEndTime();\n\n Duration getRetryLatency();\n\n Instant getStartTime();\n\n Instant getEndTime();\n\n void addStatusAndSubStatusCode(Integer index, int statusCode, int subStatusCode);\n\n List<int[]> getStatusAndSubStatusCodes();\n\n \n}", "@Test\n public void eternal_retry10s() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n .retryInterval(10, TimeUnit.SECONDS)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n DefaultResiliencePolicy p = extractDefaultPolicy();\n assertEquals(0, p.getResilienceDuration());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getMaxRetryInterval());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getRetryInterval());\n }", "private QueryReconnectRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public abstract long retryAfter();", "private Interest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MsgInstantiateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ClientIpInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "public int getRequestRetryCount() {\n \t\treturn 1;\n \t}", "private HeartBeatRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void retry(Task task);", "public RemoteSchedule createRetrySchedule(IRemoteTask task) {\r\n\t\t// create retry schedule identity\r\n\t\tRemoteScheduleIdentity scheduleIdentity = RemoteScheduleIdentity.generateIdentity(task.getSchedule()\r\n\t\t\t\t.getIdentity().getIdentity());\r\n\t\t// create retry dummy schedule\r\n\t\tRemoteSchedule retrySchedule = new RemoteSchedule(scheduleIdentity, ERemoteScheduleType.RetryDummy,\r\n\t\t\t\tnew RemoteTaskMananger(), task.getSchedule().getParams());\r\n\t\t// create retry task\r\n\t\tRemoteTask newTask = new RemoteTask(task.getIdentity(), retrySchedule, ERemoteTaskStatus.Retry,\r\n\t\t\t\ttask.getParams(), task.getTaskIndex());\r\n\t\tretrySchedule.getTaskMananger().addTask(newTask);\r\n\r\n\t\t// retry all task item\r\n\t\tfor (IRemoteTaskItem oldTaskItem : task.getTaskItems()) {\r\n\r\n\t\t\tIRemoteTaskItemIdentity taskItemIdentity = RemoteTaskItemIdentity.generateIdentity(oldTaskItem\r\n\t\t\t\t\t.getIdentity().getIdentity());\r\n\r\n\t\t\tRemoteTaskItem taskItem = new RemoteTaskItem(taskItemIdentity, task, ERemoteTaskItemStatus.Retry,\r\n\t\t\t\t\toldTaskItem.getParams(), oldTaskItem.getTaskItemIndex());\r\n\t\t\tnewTask.addTaskItem(taskItem);\r\n\t\t}\r\n\r\n\t\t// set retry task status and timeout\r\n\t\ttask.getSchedule().getTaskMananger().retryTask(task);\r\n\t\tnewTask.setRetryCount(task.getRetryCount());\r\n\t\treturn retrySchedule;\r\n\t}", "@Override\n void setRetry() {\n if (mNextReqTime > 32 * 60 * 1000 || mController.isStop()) {\n if (DEBUG)\n Log.d(TAG, \"################ setRetry timeout, cancel retry : \" + mController.isStop());\n cancelRetry();\n return;\n }\n if (mCurRetryState == RetryState.IDLE) {\n mCurRetryState = RetryState.RUNNING;\n if (mReceiver == null) {\n IntentFilter filter = new IntentFilter(INTENT_ACTION_RETRY);\n mReceiver = new stateReceiver();\n mContext.registerReceiver(mReceiver, filter);\n }\n\n }\n Intent intent = new Intent(INTENT_ACTION_RETRY);\n PendingIntent sender = PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);\n long nextReq = SystemClock.elapsedRealtime() + mNextReqTime;\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(nextReq);\n if(DEBUG) Log.i(TAG, \"start to get location after: \" + mNextReqTime + \"ms\");\n mAlarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextReq, sender);\n mNextReqTime = mNextReqTime * 2;\n }", "public interface OnRetryListener {\n void onRetry();\n}", "public DefaultHttpRequestRetryHandler(final int retryCount) {\n this(retryCount,\n InterruptedIOException.class,\n UnknownHostException.class,\n ConnectException.class,\n ConnectionClosedException.class,\n SSLException.class);\n }", "private NewsDupRes(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private CallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder retryInterval(long retryInterval) {\r\n configurationBuilder.retryInterval(retryInterval);\r\n return this;\r\n }", "RestClientBuilder(){\n\n }", "private QueryReconnectReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Bean\n @Profile(\"client\")\n public GrpcChannelConfigurer retryChannelConfigurer() {\n return (channelBuilder, name) -> {\n channelBuilder\n// .defaultServiceConfig(getRetryingServiceConfig())\n .enableRetry()\n .maxRetryAttempts(42);\n };\n }", "public OperationResultInfoBaseResourceInner() {\n }", "private LookupResult(Builder builder) {\n super(builder);\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> retry(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal int count) {\r\n\t\treturn new Resume.RetryCount<T>(source, count);\r\n\t}", "protected AbstractClient(ClientContext context) {\n this(context, RetryUtils::defaultClientRetry);\n }", "public interface RetryPolicy {\n\n /**\n * Returns duration till the next retry attempt.\n *\n * @param nextAttemptNumber next attempt number\n * @return {@link Optional} of Duration till the next attempt,\n * or {@link Optional#empty()} if next attempt shouldn't be made\n */\n Optional<Duration> durationToNextTry(int nextAttemptNumber);\n}", "private UpdateUserInfoRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "private Status(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@SafeVarargs\n protected DefaultHttpRequestRetryHandler(\n final int retryCount,\n final Class<? extends IOException>... clazzes) {\n super();\n this.retryCount = retryCount;\n this.nonRetriableClasses = new HashSet<>();\n this.nonRetriableClasses.addAll(Arrays.asList(clazzes));\n }", "private CallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private AuthOperationResult(Builder builder) {\n super(builder);\n }", "private MsgInstantiateContract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "public CallInfo() {\n\t}", "public JobBuilder retries(int retries) {\r\n job.setRetries(retries);\r\n return this;\r\n }", "private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public void setRetryCount( int retries ) {\n numberRetries = retries;\n }", "private PUserInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "protected static void extractRetryableException(ServiceFailure sf) throws RetryableException {\n Throwable cause = null;\n if (sf != null && sf.getCause() != null) {\n // all of the client-server communication exceptions are wrapped by\n // ClientSideException by libclient_java\n if (sf.getCause() instanceof ClientSideException) {\n if (sf.getCause().getCause() instanceof org.apache.http.conn.ConnectTimeoutException) {\n throw new RetryableException(\"retryable exception discovered (ConnectTimeout)\", sf.getCause());\n }\n if (sf.getCause().getCause() instanceof java.net.SocketTimeoutException) {\n throw new RetryableException(\"retryable exception discovered (SocketTimeout)\", sf.getCause());\n }\n// if (sf.getCause().getCause() instanceof java.net.SocketTimeoutException) {\n// throw new RetryableException(\"retryable exception discovered\", sf.getCause());\n// }\n }\n }\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ExpandInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private AuthInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private GenericRefreshRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder numberOfRetries(int numberOfRetries) {\r\n configurationBuilder.numberOfRetries(numberOfRetries);\r\n return this;\r\n }", "private ReconnectDeskRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "private BaseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private GenericRefreshResponseCollectionProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Resume(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> retry(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Resume.Retry<T>(source);\r\n\t}", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "void sendRetryMessage(int retryNo);", "private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }" ]
[ "0.62359226", "0.5601652", "0.52402097", "0.5166925", "0.5079779", "0.5075004", "0.50747335", "0.5067229", "0.50441426", "0.5016656", "0.49819854", "0.49649224", "0.49605855", "0.4951638", "0.4951638", "0.4951638", "0.49505237", "0.4925315", "0.4925315", "0.4925315", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49204257", "0.49166772", "0.48850608", "0.48836038", "0.4871924", "0.48506346", "0.48427716", "0.48419943", "0.4827597", "0.48210877", "0.48129043", "0.48036456", "0.47959924", "0.47943038", "0.47877866", "0.47859535", "0.47803667", "0.47772023", "0.47667533", "0.47631007", "0.475911", "0.47400433", "0.4722333", "0.47126383", "0.4710464", "0.47068247", "0.46927324", "0.4690043", "0.46890554", "0.46851614", "0.46717122", "0.46688032", "0.46618658", "0.46499732", "0.46391898", "0.4637529", "0.46260077", "0.46245602", "0.46238026", "0.46185064", "0.4612414", "0.46097216", "0.46096614", "0.46092996", "0.4606368", "0.4585847", "0.45849073", "0.4582944", "0.45585504", "0.45571527", "0.4550451", "0.45490816", "0.45490816", "0.45490816", "0.45490816", "0.45423675", "0.453313", "0.45267442", "0.4521628", "0.4517081", "0.4515931", "0.4500773", "0.4498832", "0.44970477", "0.4497007", "0.4488855", "0.44862363", "0.44862363", "0.44862363", "0.4485077", "0.44805858", "0.44803965" ]
0.7472263
0
optional bool isSupportComp = 3;
boolean hasIsSupportComp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.6844898", "0.6819231", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.75836515
1
optional bool isSupportComp = 3;
boolean getIsSupportComp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.75836515", "0.6844898", "0.6819231", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.7620791
0
Use BusiControl.newBuilder() to construct.
private BusiControl(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bus() {\n\t}", "private hmi_control_req(Builder builder) {\n super(builder);\n }", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "private BeaconController(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CazCaritabil(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BatteryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Car(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Builder create(){\n return new Builder(Tribit.ZERO);\n }", "private Bus constructBus(String line, Point point) {\n\t\t// parse the information\n\t\tStringTokenizer tokenizer = new StringTokenizer(line,\",\");\n \tint id = Integer.parseInt(tokenizer.nextToken().trim());\n \tString name = tokenizer.nextToken();\n \tif (name.startsWith(\"\\\"\")) {\n \t\twhile (!name.endsWith(\"\\\"\")) {\n \t\t\tname = name + \",\" + tokenizer.nextToken();\n \t\t}\n \t}\n \t/*int area = */Integer.parseInt(tokenizer.nextToken().trim());\n \t/*int zone = */Integer.parseInt(tokenizer.nextToken().trim());\n \tdouble voltageMagnitude = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble voltageAngle = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble baseVoltageKiloVolts = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble remoteVoltage = Double.parseDouble(tokenizer.nextToken().trim());\n \tint status = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\n \tBus bus = registerBus(id);\n bus.setAttribute(Bus.NAME_KEY,name);\n bus.setVoltagePU(voltageMagnitude);\n bus.setPhaseAngle(voltageAngle);\n bus.setSystemVoltageKV(baseVoltageKiloVolts);\n bus.setRemoteVoltagePU(remoteVoltage);\n bus.setStatus(status == 1 ? true : false);\n \tbus.setCoordinate(point == null ? new PointImpl(0,0) : point); \t\n \treturn bus;\t\t\n\t}", "static Builder newBuilder() {\n return new Builder();\n }", "public BrickControlPi() {\r\n\t}", "private Basis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Construct(Builder builder) {\n super(builder);\n }", "private B(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private hmi_control_response(Builder builder) {\n super(builder);\n }", "private Builder(org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.BUS_UNIT)) {\n this.BUS_UNIT = data().deepCopy(fields()[0].schema(), other.BUS_UNIT);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.DESCRIPTION)) {\n this.DESCRIPTION = data().deepCopy(fields()[1].schema(), other.DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.BASE_CURRENCY_ID)) {\n this.BASE_CURRENCY_ID = data().deepCopy(fields()[2].schema(), other.BASE_CURRENCY_ID);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.IMPLEMENT_FX)) {\n this.IMPLEMENT_FX = data().deepCopy(fields()[3].schema(), other.IMPLEMENT_FX);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.BUS_UNIT_ID)) {\n this.BUS_UNIT_ID = data().deepCopy(fields()[4].schema(), other.BUS_UNIT_ID);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.CL_APPROVAL)) {\n this.CL_APPROVAL = data().deepCopy(fields()[5].schema(), other.CL_APPROVAL);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.CL_MAIL_GROUP)) {\n this.CL_MAIL_GROUP = data().deepCopy(fields()[6].schema(), other.CL_MAIL_GROUP);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.AUTO_RECEIPT_APPL)) {\n this.AUTO_RECEIPT_APPL = data().deepCopy(fields()[7].schema(), other.AUTO_RECEIPT_APPL);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.ADDRESS_IND)) {\n this.ADDRESS_IND = data().deepCopy(fields()[8].schema(), other.ADDRESS_IND);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.ALLOW_MISC_INV_CREATION)) {\n this.ALLOW_MISC_INV_CREATION = data().deepCopy(fields()[9].schema(), other.ALLOW_MISC_INV_CREATION);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ALLOW_ABC_REV_SPLIT_TO_RUN)) {\n this.ALLOW_ABC_REV_SPLIT_TO_RUN = data().deepCopy(fields()[10].schema(), other.ALLOW_ABC_REV_SPLIT_TO_RUN);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.ALLOW_MTM_TO_RUN)) {\n this.ALLOW_MTM_TO_RUN = data().deepCopy(fields()[11].schema(), other.ALLOW_MTM_TO_RUN);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.GLPOST_DETAILS)) {\n this.GLPOST_DETAILS = data().deepCopy(fields()[12].schema(), other.GLPOST_DETAILS);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.GL_INTERFACE)) {\n this.GL_INTERFACE = data().deepCopy(fields()[13].schema(), other.GL_INTERFACE);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.ALLOW_AIS_UNBILLED_TO_RUN)) {\n this.ALLOW_AIS_UNBILLED_TO_RUN = data().deepCopy(fields()[14].schema(), other.ALLOW_AIS_UNBILLED_TO_RUN);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[15].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[16].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n if (isValidValue(fields()[17], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[17].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[17] = other.fieldSetFlags()[17];\n }\n if (isValidValue(fields()[18], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[18].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[18] = other.fieldSetFlags()[18];\n }\n if (isValidValue(fields()[19], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[19].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[19] = other.fieldSetFlags()[19];\n }\n }", "private CombatProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public MessageBus()\r\n\t{\r\n\t\tthis(null);\r\n\t}", "public BatchControl() {\n super();\n }", "private flight(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "protected RBNBControl createRBNBControl(){\r\n\t\tlog.write(\"createRBNBControl() called from \" + this.getClass().getName());\r\n\t\treturn new RBNBControl();\r\n\t}", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "@Override\n public IRateLimiter<TKey> build() {\n Preconditions.checkArgument(this.rateLimit > 0, \"rateLimit must be positive\");\n Preconditions.checkArgument(this.intervalTime > 0, \"intervalTime must be positive\");\n Preconditions.checkArgument(this.calendarTimeUnitCode > 0, \"TimeUnit is not valid\");\n\n return new InMemoryRateLimiter<>(this);\n }", "public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }", "private UTruck(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void initBus() {\n\n sbus = new Bus(16);\n dbus = new Bus(16);\n\n sbus.addPoint(new Point(51, 101));\n sbus.addPoint(new Point(563, 101));\n sbus.addPoint(new Point(74, 101));\n sbus.addPoint(new Point(74, 290));\n sbus.addPoint(new Point(74, 290));\n sbus.addPoint(new Point(92, 290));\n sbus.addPoint(new Point(206, 101));\n sbus.addPoint(new Point(206, 262));\n sbus.addPoint(new Point(206, 262));\n sbus.addPoint(new Point(226, 262));\n\n dbus.addPoint(new Point(52, 73));\n dbus.addPoint(new Point(563, 73));\n dbus.addPoint(new Point(478, 73));\n dbus.addPoint(new Point(478, 154));\n\n dbus.addTextPoint(new Point(80, 70));\n sbus.addTextPoint(new Point(80, 95));\n\n\n }", "private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "private Builder() {}", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "private Service(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Vehicle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }", "public static baconhep.TTau.Builder newBuilder() {\n return new baconhep.TTau.Builder();\n }", "public Pwm(int bus){\n instanceBus = bus;\n if(bus == unusedBus){\n \n }\n else{\n pwmInstance = new Jaguar(bus);\n Debug.output(\"Pwm constructor: created PWM on bus\", new Integer(bus), ConstantManager.deviceDebug);\n }\n }", "private MessageBusImpl() \r\n\t{\r\n\t\tthis.map = new ConcurrentHashMap<MicroService, LinkedBlockingQueue<Message>>();\r\n\t\tthis.MessageToMSQ = new ConcurrentHashMap<Class<? extends Message>, RoundRobinQueue<MicroService>>();\r\n\t\tthis.ReqToRequester = new ConcurrentHashMap<Request<?>, MicroService>();\r\n\t}", "private UInitTruck(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public IntercityBus(){\n super(\"CombustionEngine\");\n super.setRegion(\"Regional\");\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);", "public EventBus build() {\n return new EventBus(this);\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public Bus(int busNo, int lastStop, int nextStop, double lastStopArrivalTime) {\r\n\t\tsuper();\r\n\t\tthis.busNo = busNo;\r\n\t\tthis.lastStop = lastStop;\r\n\t\tthis.nextStop = nextStop;\r\n\t\tthis.lastStopArrivalTime = lastStopArrivalTime;\r\n\t\tthis.busAtStop = 'N';\r\n\t\tthis.allBusesSync='Y';\r\n\t}", "private RpcMessage(Builder builder) {\n super(builder);\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "private CSTeamCreate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Citizen(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n\tpublic Control build() {\n\t\treturn null;\n\t}", "private Command(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public ComputerBuilder() {\n this.computer = new Computer();\n }", "private transitFlight(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private Stocks(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() { }", "public addbus() {\n initComponents();\n }", "public Barrier() {\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBUSUNIT(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.BUS_UNIT = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "private knock_rq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "private Interest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PBPoker(Builder builder) {\n super(builder);\n }", "private PROTOKANI(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public MetricOuterClass.Metric.Builder getMetricControlBuilder() {\n \n onChanged();\n return getMetricControlFieldBuilder().getBuilder();\n }", "public static com.baidu.im.frame.pb.ObjBua.BUA getBUA(Context context,\n com.baidu.im.frame.pb.ObjBua.BUA builder) {\n if (context != null && builder != null) {\n refreshDeviceInfoMap(context);\n builder.setAppVer(deviceInfoMap.get(APP_VER));\n builder.setMem(Integer.parseInt(deviceInfoMap.get(MEM_USED_PERC)));\n builder.setSdCard(Integer.parseInt(deviceInfoMap.get(SD_TOTAL)));\n // com.baidu.im.frame.pb.ObjBua.BUAInfo infoBuilder =\n // com.baidu.im.frame.pb.ObjBua.BUAInfo.newBuilder();\n // getBUAInfo(context, infoBuilder);\n // builder.setBuaInfo(infoBuilder);\n }\n return builder;\n }", "public Builder() {\n\t\t}", "private rq_util_heartbeat(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MsgInstantiateContract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n\t\t}", "public BillingControl(ConnectionInf c,HosObject ho,HosDB hdb,HosSubject hs\n ,LookupObject lo) {\n theConnectionInf = c;\n theHosDB = hdb;\n theHO = ho;\n theLO = lo;\n theHS = hs;\n }", "public static org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder newBuilder() {\n return new org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder();\n }", "public LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS() {}", "private Builder() {\n super(TransferSerialMessage.SCHEMA$);\n }", "private ChargeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Aois(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private knock_rs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public BusStopRecord() {\n super(BusStop.BUS_STOP);\n }", "public static org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder newBuilder(org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder();\n } else {\n return new org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder(other);\n }\n }", "private C(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Busca(){\n }", "public BoletoPaymentRequest() {\n\n }", "private Builder()\n {\n }", "@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}", "public static com.trg.fms.api.Trip.Builder newBuilder() {\n return new com.trg.fms.api.Trip.Builder();\n }", "private OrderScheduling(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public BusHandler(Looper looper) {\n super(looper);\n }", "private GCJ02(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public BrickletIO16(String uid, IPConnection ipcon) {\n\t\tsuper(uid, ipcon);\n\n\t\tapiVersion[0] = 2;\n\t\tapiVersion[1] = 0;\n\t\tapiVersion[2] = 0;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_PORT)] = RESPONSE_EXPECTED_FLAG_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_PORT)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_PORT_CONFIGURATION)] = RESPONSE_EXPECTED_FLAG_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_PORT_CONFIGURATION)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_DEBOUNCE_PERIOD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_DEBOUNCE_PERIOD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_PORT_INTERRUPT)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_PORT_INTERRUPT)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_PORT_MONOFLOP)] = RESPONSE_EXPECTED_FLAG_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_PORT_MONOFLOP)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_SELECTED_VALUES)] = RESPONSE_EXPECTED_FLAG_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_IDENTITY)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_INTERRUPT)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_MONOFLOP_DONE)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\n\t\tcallbacks[CALLBACK_INTERRUPT] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tchar port = (char)(bb.get());\n\t\t\t\tshort interruptMask = IPConnection.unsignedByte(bb.get());\n\t\t\t\tshort valueMask = IPConnection.unsignedByte(bb.get());\n\n\t\t\t\tfor(InterruptListener listener: listenerInterrupt) {\n\t\t\t\t\tlistener.interrupt(port, interruptMask, valueMask);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcallbacks[CALLBACK_MONOFLOP_DONE] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tchar port = (char)(bb.get());\n\t\t\t\tshort selectionMask = IPConnection.unsignedByte(bb.get());\n\t\t\t\tshort valueMask = IPConnection.unsignedByte(bb.get());\n\n\t\t\t\tfor(MonoflopDoneListener listener: listenerMonoflopDone) {\n\t\t\t\t\tlistener.monoflopDone(port, selectionMask, valueMask);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "private ResponseBank(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }" ]
[ "0.63042927", "0.6102795", "0.58903354", "0.5734563", "0.57332546", "0.56698215", "0.5582966", "0.55619675", "0.5529724", "0.54566175", "0.5446663", "0.5442477", "0.54375154", "0.5427208", "0.5426389", "0.5403413", "0.5395193", "0.5394403", "0.5383463", "0.5371629", "0.5370058", "0.5369871", "0.5369871", "0.5369871", "0.5366703", "0.53657484", "0.53653", "0.5361716", "0.5353108", "0.5346376", "0.5334605", "0.5334586", "0.5334586", "0.5334586", "0.5334586", "0.5328557", "0.5324912", "0.53236735", "0.53181684", "0.53161144", "0.53139424", "0.5311496", "0.53082573", "0.5302738", "0.5298138", "0.5298138", "0.5298138", "0.5297887", "0.5297887", "0.52944607", "0.5293922", "0.5290981", "0.52687347", "0.52629656", "0.52450097", "0.52450097", "0.52450097", "0.52450097", "0.52191716", "0.5218918", "0.5203338", "0.51832414", "0.51784605", "0.51683867", "0.51673126", "0.5165295", "0.5146255", "0.5139153", "0.5136509", "0.5132016", "0.5127909", "0.5125933", "0.5120831", "0.5115016", "0.5107567", "0.5106842", "0.51040405", "0.5101162", "0.50976557", "0.5097116", "0.50955456", "0.5094548", "0.50944304", "0.50930727", "0.50928044", "0.5088301", "0.50864524", "0.5084555", "0.5081933", "0.5077653", "0.5075345", "0.50697935", "0.5064038", "0.5062646", "0.5062269", "0.5058838", "0.5058576", "0.505767", "0.5051642", "0.50494593" ]
0.7999358
0
optional bool isSupportComp = 3;
@Override public boolean hasIsSupportComp() { return ((bitField0_ & 0x00000004) == 0x00000004); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6844898", "0.6819231", "0.6740995", "0.6167135", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.6116129
6
optional bool isSupportComp = 3;
@Override public boolean getIsSupportComp() { return isSupportComp_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6819231", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.6844898
2
optional bool isSupportComp = 3;
@Override public boolean hasIsSupportComp() { return ((bitField0_ & 0x00000004) == 0x00000004); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6844898", "0.6819231", "0.6740995", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.6167135
5
optional bool isSupportComp = 3;
@Override public boolean getIsSupportComp() { return isSupportComp_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6844898", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.6819231
3
optional bool isSupportComp = 3;
public Builder setIsSupportComp(boolean value) { bitField0_ |= 0x00000004; isSupportComp_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6844898", "0.6819231", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.58867437
16
optional bool isSupportComp = 3;
public Builder clearIsSupportComp() { bitField0_ = (bitField0_ & ~0x00000004); isSupportComp_ = false; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsSupportComp();", "boolean hasIsSupportComp();", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "boolean optional();", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasMinor();", "boolean hasReqardTypeThree();", "public boolean isSoft();", "final void checkForComodification() {\n\t}", "boolean hasCompatibilityState();", "boolean isMajor();", "boolean getB21();", "boolean isIntroduced();", "boolean hasMajor();", "public Builder setIsSupportComp(boolean value) {\n bitField0_ |= 0x00000004;\n isSupportComp_ = value;\n onChanged();\n return this;\n }", "void mo1492b(boolean z);", "boolean hasGcj02();", "void mo21071b(boolean z);", "boolean hasConstruct();", "boolean mo2803a(boolean z);", "void mo21069a(boolean z);", "boolean isSetParlay();", "boolean isSetNcbistdaa();", "void mo1488a(boolean z);", "void mo98208a(boolean z);", "boolean getB23();", "boolean isVersion3Allowed();", "public abstract Boolean isImportant();", "public abstract String\n conditional();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean getB20();", "void mo197b(boolean z);", "void mo13377a(boolean z, C15943j c15943j);", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean isEstConditionne();", "boolean getB27();", "boolean isAchievable();", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "Boolean getCompletelyCorrect();", "boolean hasC3();", "boolean hasBuild();", "void mo54420a(boolean z, boolean z2);", "boolean mo54431c();", "boolean isSetNcbieaa();", "boolean getB22();", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public void method_217(boolean var1) {}", "boolean internal();", "abstract protected boolean hasCompatValueFlags();", "void mo99838a(boolean z);", "boolean hasC();", "public interface IsNeedSubscribePIN\n {\n /**\n * need PIN\n */\n String NEED = \"1\";\n\n /**\n * not need PIN\n */\n String NEEDLESS = \"0\";\n }", "public void mo97907c(boolean z) {\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo2163j();", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "boolean mo202j();", "String getSpareFlag();", "boolean getB25();", "void mo26249mh(boolean z);", "boolean getB24();", "boolean getB19();", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "boolean isSetProbables();", "void mo64153a(boolean z);", "public abstract boolean mo66253b();", "boolean mo44966c();", "Conditional createConditional();", "boolean hasB21();", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "boolean isPwc();", "boolean isMandatory();", "boolean isSetCombine();", "boolean mo54429b();", "private CheckBoolean() {\n\t}", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "void mo6661a(boolean z);", "boolean hasSoftware();", "boolean hasIsPerformOf();", "boolean getQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "abstract void mo956a(boolean z);", "boolean isSetCit();", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "void mo3305a(boolean z);", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public default boolean hasAltFire(){ return false; }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean hasObjective(){ return this.hasParameter(1); }", "boolean m19262a(boolean z) {\n return complete(null, null, z ? 8 : 4);\n }", "public abstract void mo9254f(boolean z);", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "public abstract boolean isStandard();", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }" ]
[ "0.7620791", "0.75836515", "0.6844898", "0.6819231", "0.6740995", "0.6167135", "0.6116129", "0.6086526", "0.60650784", "0.6056592", "0.60235375", "0.6019703", "0.5994469", "0.5952281", "0.58945566", "0.58884907", "0.58867437", "0.58770555", "0.5850175", "0.5826772", "0.5809201", "0.58042634", "0.5794858", "0.5785367", "0.5773198", "0.57713467", "0.5770035", "0.5758952", "0.5742078", "0.5739795", "0.5731496", "0.5731279", "0.57252306", "0.5704442", "0.57026464", "0.5688372", "0.5685818", "0.5674814", "0.5665978", "0.56616014", "0.56614757", "0.5653979", "0.5638588", "0.5633258", "0.56192005", "0.56146705", "0.5611682", "0.56083494", "0.5607935", "0.56055915", "0.55931693", "0.5592966", "0.5576926", "0.5576638", "0.55696535", "0.5550379", "0.55466527", "0.5546389", "0.55450195", "0.55363595", "0.5533605", "0.5528914", "0.5528873", "0.5525545", "0.5522631", "0.55211115", "0.5516528", "0.5503767", "0.55020887", "0.549867", "0.54958093", "0.5495625", "0.5491714", "0.54871947", "0.5486611", "0.5486545", "0.5485076", "0.5477817", "0.5477817", "0.5477817", "0.5473932", "0.5470113", "0.5470052", "0.5468387", "0.546802", "0.54660326", "0.54658943", "0.5460914", "0.5452746", "0.5446043", "0.544346", "0.5441255", "0.5441198", "0.5438734", "0.5437547", "0.5436914", "0.54365575", "0.543589", "0.54310745", "0.54303026", "0.5423292" ]
0.0
-1
Package private to enable the enforcement of naming convention for instruction file.
InstructionFileId(String bucket, String key, String versionId) { super(bucket, key, versionId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInstructionFile(String s)\r\n \t{\r\n \t\tm_sInsFileName = s;\r\n \t}", "private static String handleReservedNames(String filename) {\r\n String filenameWithoutExtension = stripExtensionIfAny(filename);\r\n\r\n if (Stream.of(RESERVED_NAMES).anyMatch(s -> s.equalsIgnoreCase(filenameWithoutExtension))){\r\n return SANITIZATION_TOKEN + filename;\r\n } \r\n return filename;\r\n }", "public SymName(String n) {\n\tn = n.trim();\n\tfullName = n;\n\tcomp = Util.findComponents(n);\n\tnum_comp = comp.length;\n\ttype = new int[num_comp];\n }", "@Test\n\tpublic void testInvariantRenaming() throws Exception {\n\t\tfinal IMachineRoot mch = createMachine(\"m1\");\n\t\tfinal String prefix = PreferenceUtils.getAutoNamePrefix(mch, IInvariant.ELEMENT_TYPE);\n\t\tfinal IInvariant inv1 = createInvariant(mch, prefix + \"24\", \"\", false);\n\t\tfinal IInvariant inv2 = createInvariant(mch, \"foo\", \"\", true);\n\n\t\trenameInvariants(mch);\n\t\tassertEquals(prefix + \"1\", inv1.getLabel());\n\t\tassertEquals(prefix + \"2\", inv2.getLabel());\n\t}", "MnemonicNameReference createMnemonicNameReference();", "abstract protected String getNextName(String descriptor) throws Exception;", "public abstract void setName( String name ) throws SourceException;", "@Test\r\n public void testInvalidIncSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS++\", \"0xA0170\");\r\n }", "public interface NamingScheme {\n File getPath(File backingFile, String key);\n\n String getPropName();\n\n String getFile(File backingFile, ImmuList<String> names);\n\n ThreeKey getKey( ImmuList<String> names );\n}", "@Test\r\n public final void rawInputNamesShouldNotHaveSpaces() {\r\n \tString actual = proc.preprocessRawInputName(\" AndThis String\");\r\n \tassertEquals(\"AndThisString\", actual);\r\n }", "@Test\n\tpublic void testInvariantPrefixRenaming() throws Exception {\n\t\ttestMachinePrefixRenaming(IInvariant.ELEMENT_TYPE);\n\t}", "public void markUseIdentifierNameString() {\n useIdentifierNameString = true;\n }", "public interface FileNameVisitor extends NameVisitor {\n /**\n *\n * Visit the Petri net file name\n *\n * @param name to be visited \n */\n void visit(PetriNetFileName name);\n}", "public Classification nameOf(String name) {\n throw new IllegalStateException(\"Unknown definition: \" + this); // basically unreachable\n }", "public void setName(Identifier name) throws SourceException;", "String getInstruction();", "protected abstract String getName();", "void formatName(String name) throws NameFormatException;", "abstract String getName();", "public void setName(String name)\n/* */ {\n/* 368 */ this.name = name;\n/* 369 */ this.fullName = name;\n/* 370 */ this.namespace = null;\n/* */ }", "@Test\n\tpublic void testBasicNamingBad() {\n\t\t// \"Bad\" == \"Should throw an exception\"\n\t\tassertNamingException(\"int foo(int a) { return b; }\");\n\t\tassertNamingException(\"int foo(int a) { { int b = 42; } return b; }\");\n\t\tassertNamingException(\"int foo(int a) { { int b = b; int c = 42; } return a; }\");\n\t\tassertNamingException(\"int foo(int a) { int a = 42; return a; }\");\n\t}", "protected void nameCode(String newName) {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n // Add the extension here, this simplifies some of the logic below.\n if (newName.indexOf('.') == -1) {\n newName += \".\" + getDefaultExtension();\n }\n\n // if renaming to the same thing as before, just ignore.\n // also ignoring case here, because i don't want to write\n // a bunch of special stuff for each platform\n // (osx is case insensitive but preserving, windows insensitive,\n // *nix is sensitive and preserving.. argh)\n if (renamingCode) {\n if (newName.equalsIgnoreCase(current.getFileName())) {\n // exit quietly for the 'rename' case.\n // if it's a 'new' then an error will occur down below\n return;\n }\n }\n\n newName = newName.trim();\n if (newName.equals(\"\")) return;\n\n int dot = newName.indexOf('.');\n if (dot == 0) {\n Base.showWarning(_(\"Problem with rename\"),\n _(\"The name cannot start with a period.\"), null);\n return;\n }\n\n String newExtension = newName.substring(dot+1).toLowerCase();\n if (!validExtension(newExtension)) {\n Base.showWarning(_(\"Problem with rename\"),\n I18n.format(\n\t\t\t _(\"\\\".{0}\\\" is not a valid extension.\"), newExtension\n\t\t ), null);\n return;\n }\n\n // Don't let the user create the main tab as a .java file instead of .pde\n if (!isDefaultExtension(newExtension)) {\n if (renamingCode) { // If creating a new tab, don't show this error\n if (current == code[0]) { // If this is the main tab, disallow\n Base.showWarning(_(\"Problem with rename\"),\n _(\"The main file can't use an extension.\\n\" +\n \"(It may be time for your to graduate to a\\n\" +\n \"\\\"real\\\" programming environment)\"), null);\n return;\n }\n }\n }\n\n // dots are allowed for the .pde and .java, but not in the name\n // make sure the user didn't name things poo.time.pde\n // or something like that (nothing against poo time)\n String shortName = newName.substring(0, dot);\n String sanitaryName = Sketch.sanitizeName(shortName);\n if (!shortName.equals(sanitaryName)) {\n newName = sanitaryName + \".\" + newExtension;\n }\n\n // In Arduino, we want to allow files with the same name but different\n // extensions, so compare the full names (including extensions). This\n // might cause problems: http://dev.processing.org/bugs/show_bug.cgi?id=543\n for (SketchCode c : code) {\n if (newName.equalsIgnoreCase(c.getFileName())) {\n Base.showMessage(_(\"Nope\"),\n I18n.format(\n\t\t\t _(\"A file named \\\"{0}\\\" already exists in \\\"{1}\\\"\"),\n\t\t\t c.getFileName(),\n\t\t\t folder.getAbsolutePath()\n\t\t\t ));\n return;\n }\n }\n \n // In Arduino, don't allow a .cpp file with the same name as the sketch,\n // because the sketch is concatenated into a file with that name as part\n // of the build process. \n if (newName.equals(getName() + \".cpp\")) {\n Base.showMessage(_(\"Nope\"),\n _(\"You can't have a .cpp file with the same name as the sketch.\"));\n return;\n }\n \n if (renamingCode && currentIndex == 0) {\n for (int i = 1; i < codeCount; i++) {\n if (sanitaryName.equalsIgnoreCase(code[i].getPrettyName()) &&\n code[i].getExtension().equalsIgnoreCase(\"cpp\")) {\n Base.showMessage(_(\"Nope\"),\n I18n.format(\n\t\t\t _(\"You can't rename the sketch to \\\"{0}\\\"\\n\" +\n\t\t\t \"because the sketch already has a .cpp file with that name.\"),\n\t\t\t sanitaryName\n\t\t\t ));\n return;\n }\n }\n }\n\n\n File newFile = new File(folder, newName);\n// if (newFile.exists()) { // yay! users will try anything\n// Base.showMessage(\"Nope\",\n// \"A file named \\\"\" + newFile + \"\\\" already exists\\n\" +\n// \"in \\\"\" + folder.getAbsolutePath() + \"\\\"\");\n// return;\n// }\n\n// File newFileHidden = new File(folder, newName + \".x\");\n// if (newFileHidden.exists()) {\n// // don't let them get away with it if they try to create something\n// // with the same name as something hidden\n// Base.showMessage(\"No Way\",\n// \"A hidden tab with the same name already exists.\\n\" +\n// \"Use \\\"Unhide\\\" to bring it back.\");\n// return;\n// }\n\n if (renamingCode) {\n if (currentIndex == 0) {\n // get the new folder name/location\n String folderName = newName.substring(0, newName.indexOf('.'));\n File newFolder = new File(folder.getParentFile(), folderName);\n if (newFolder.exists()) {\n Base.showWarning(_(\"Cannot Rename\"),\n I18n.format(\n\t\t\t _(\"Sorry, a sketch (or folder) named \" +\n \"\\\"{0}\\\" already exists.\"),\n\t\t\t newName\n\t\t\t ), null);\n return;\n }\n\n // unfortunately this can't be a \"save as\" because that\n // only copies the sketch files and the data folder\n // however this *will* first save the sketch, then rename\n\n // first get the contents of the editor text area\n if (current.isModified()) {\n current.setProgram(editor.getText());\n try {\n // save this new SketchCode\n current.save();\n } catch (Exception e) {\n Base.showWarning(_(\"Error\"), _(\"Could not rename the sketch. (0)\"), e);\n return;\n }\n }\n\n if (!current.renameTo(newFile, newExtension)) {\n Base.showWarning(_(\"Error\"),\n I18n.format(\n\t\t\t _(\"Could not rename \\\"{0}\\\" to \\\"{1}\\\"\"),\n\t\t\t current.getFileName(),\n\t\t\t newFile.getName()\n\t\t\t ), null);\n return;\n }\n\n // save each of the other tabs because this is gonna be re-opened\n try {\n for (int i = 1; i < codeCount; i++) {\n code[i].save();\n }\n } catch (Exception e) {\n Base.showWarning(_(\"Error\"), _(\"Could not rename the sketch. (1)\"), e);\n return;\n }\n\n // now rename the sketch folder and re-open\n boolean success = folder.renameTo(newFolder);\n if (!success) {\n Base.showWarning(_(\"Error\"), _(\"Could not rename the sketch. (2)\"), null);\n return;\n }\n // if successful, set base properties for the sketch\n\n File newMainFile = new File(newFolder, newName + \".ino\");\n String newMainFilePath = newMainFile.getAbsolutePath();\n\n // having saved everything and renamed the folder and the main .pde,\n // use the editor to re-open the sketch to re-init state\n // (unfortunately this will kill positions for carets etc)\n editor.handleOpenUnchecked(newMainFilePath,\n currentIndex,\n editor.getSelectionStart(),\n editor.getSelectionStop(),\n editor.getScrollPosition());\n\n // get the changes into the sketchbook menu\n // (re-enabled in 0115 to fix bug #332)\n editor.base.rebuildSketchbookMenus();\n\n } else { // else if something besides code[0]\n if (!current.renameTo(newFile, newExtension)) {\n Base.showWarning(_(\"Error\"),\n I18n.format(\n\t\t\t _(\"Could not rename \\\"{0}\\\" to \\\"{1}\\\"\"),\n\t\t\t current.getFileName(),\n\t\t\t newFile.getName()\n\t\t\t ), null);\n return;\n }\n }\n\n } else { // creating a new file\n try {\n if (!newFile.createNewFile()) {\n // Already checking for IOException, so make our own.\n throw new IOException(_(\"createNewFile() returned false\"));\n }\n } catch (IOException e) {\n Base.showWarning(_(\"Error\"),\n\t\t\t I18n.format(\n \"Could not create the file \\\"{0}\\\" in \\\"{1}\\\"\",\n\t\t\t newFile,\n\t\t\t folder.getAbsolutePath()\n\t\t\t ), e);\n return;\n }\n SketchCode newCode = new SketchCode(newFile, newExtension);\n //System.out.println(\"new code is named \" + newCode.getPrettyName() + \" \" + newCode.getFile());\n insertCode(newCode);\n }\n\n // sort the entries\n sortCode();\n\n // set the new guy as current\n setCurrentCode(newName);\n\n // update the tabs\n editor.header.rebuild();\n }", "String siToCcsdsName(String siName);", "FileNameReference createFileNameReference();", "@Test\n\tpublic void caseNameWithCorrectInput() {\n\t\tString caseName = \"led case\";\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.stringUtil(caseName);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (StringException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "public String getFileNamingDetails();", "public String mangle(String sName);", "public void processingInstruction(String name, String instruction) \n throws SAXException\n {\n\tif (name.indexOf (':') != -1) {\n\t throw new SAXParseException((getMessage (\"XDB-010\")), locator);\n }\n super.processingInstruction(name, instruction);\n }", "public void testClassName() {\n\t\tClassName name = this.compiler.createClassName(\"test.Example\");\n\t\tassertEquals(\"Incorrect package\", \"generated.officefloor.test\", name.getPackageName());\n\t\tassertTrue(\"Incorrect class\", name.getClassName().startsWith(\"Example\"));\n\t\tassertEquals(\"Incorrect qualified name\", name.getPackageName() + \".\" + name.getClassName(), name.getName());\n\t}", "public AssemblyLabel(String name, int offset) {\n\t\tthis.name = name;\n\t\tthis.byteOffset = offset;\n\t}", "public static String getName() {\n\t\treturn _asmFileStr;\n\t}", "public abstract String getFileFormatName();", "public void setName(String newName) { throw new NotImplementedException(\"Variable names are final!\"); }", "private String checkName(String filename,int start_off){\n String name=FilenameUtil.setForwardSlash(filename);\n\n // check that it is a possibility\n if(name==null || name.length()<=0) return null;\n if(name.indexOf(matchname)<0) \n if( name.indexOf( matchname1) < 0) return null;\n if(! name.endsWith(\".class\") ) return null;\n if(name.indexOf(\"$\")>name.lastIndexOf(\"/\")) return null;\n \n // chop off the class part\n name=name.substring(start_off,name.length()-6);\n name=name.replace('/','.');\n \n return name;\n }", "String getSymbolicName();", "public InvalidFileNameException(String pName, String pMessage)\n/* */ {\n/* 49 */ super(pMessage);\n/* 50 */ this.name = pName;\n/* */ }", "@Test\n\tpublic void testGuardPrefixRenaming() throws Exception {\n\t\ttestMachinePrefixRenaming(IGuard.ELEMENT_TYPE);\n\t}", "public String getBaseName() {\n/* 323 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\r\n\tpublic void testNameInvalid() {\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"*\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"0-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"324tggs\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-feioj\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"/\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"@\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\" \"));\r\n\t}", "@Test\n\tpublic void testGuardRenaming() throws Exception {\n\t\ttestRenaming(IGuard.ELEMENT_TYPE);\n\t}", "public A86Writer(String filename) {\n\t\tinputFile = filename;\n\t\toutputFile = filename.substring(0, filename.length()-2) + \"asm\";\n\t}", "Instruction createInstruction();", "protected abstract String name ();", "@Test\r\n public void deriveFromIncSuffixExpressionWithSIUnits() throws IOException {\r\n //example with siunit literal\r\n check(\"4km++\", \"(int,km)\");\r\n }", "Caseless getName();", "@Test\r\n public void testInvalidIncPrefixExpressionWithSIUnits() throws IOException {\n checkError(\"++varS\", \"0xA0172\");\r\n }", "private void checkOldReservedAttribute(String name)\n {\n DefaultConfigurationBuilder.ConfigurationDeclaration decl = new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory, factory);\n DefaultConfigurationNode parent = new DefaultConfigurationNode();\n DefaultConfigurationNode nd = new DefaultConfigurationNode(\"config-\"\n + name);\n parent.addAttribute(nd);\n assertTrue(\"config-\" + name + \" attribute not recognized\", decl\n .isReservedNode(nd));\n DefaultConfigurationNode nd2 = new DefaultConfigurationNode(name);\n parent.addAttribute(nd2);\n assertFalse(name + \" is reserved though config- exists\", decl\n .isReservedNode(nd2));\n assertTrue(\"config- attribute not recognized when \" + name + \" exists\",\n decl.isReservedNode(nd));\n }", "@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }", "public void setInstName(String instName) {\r\n this.instName = instName == null ? null : instName.trim();\r\n }", "@Override\n public String generateLayoutName(String objectName){\n Scanner in = new Scanner(objectName);\n String out = \"\";\n String x = in.next();\n int z = x.length();\n for(int y = 0; y < z; y++){\n if(Character.isUpperCase(x.charAt(y))){\n out = out+\"_\"+(Character.toLowerCase(x.charAt(y)));\n\n }else{\n out = out+x.charAt(y);\n }\n }\n return \"activity\"+out;\n }", "abstract String name();", "public void setInstName(String instName) {\n this.instName = instName == null ? null : instName.trim();\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.414 -0500\", hash_original_method = \"33259345EBD99FFF49F4E1AAD2529013\", hash_generated_method = \"296CADF2DCFE4D340DC221E4F2AE1D69\")\n \nString [] processName (String qName, boolean isAttribute)\n {\n String name[];\n Hashtable table;\n\n // detect errors in call sequence\n declsOK = false;\n\n // Select the appropriate table.\n if (isAttribute) {\n table = attributeNameTable;\n } else {\n table = elementNameTable;\n }\n\n // Start by looking in the cache, and\n // return immediately if the name\n // is already known in this content\n name = (String[])table.get(qName);\n if (name != null) {\n return name;\n }\n\n // We haven't seen this name in this\n // context before. Maybe in the parent\n // context, but we can't assume prefix\n // bindings are the same.\n name = new String[3];\n name[2] = qName.intern();\n int index = qName.indexOf(':');\n\n // No prefix.\n if (index == -1) {\n if (isAttribute) {\n if (qName == \"xmlns\" && namespaceDeclUris)\n name[0] = NSDECL;\n else\n name[0] = \"\";\n } else if (defaultNS == null) {\n name[0] = \"\";\n } else {\n name[0] = defaultNS;\n }\n name[1] = name[2];\n }\n\n // Prefix\n else {\n String prefix = qName.substring(0, index);\n String local = qName.substring(index+1);\n String uri;\n if (\"\".equals(prefix)) {\n uri = defaultNS;\n } else {\n uri = (String)prefixTable.get(prefix);\n }\n if (uri == null\n || (!isAttribute && \"xmlns\".equals (prefix))) {\n return null;\n }\n name[0] = uri;\n name[1] = local.intern();\n }\n\n // Save in the cache for future use.\n // (Could be shared with parent context...)\n table.put(name[2], name);\n return name;\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.372 -0500\", hash_original_method = \"E4C63287FA81E5CD749A3DF00B7871AE\", hash_generated_method = \"A395ADC766F313790DA998F5853068A3\")\n \n void nameChanged(String newName){\n \t//Formerly a native method\n \taddTaint(newName.getTaint());\n }", "public String resource_name () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }", "public void nameAnalysis(SymTable symTab) { }", "String codeToName(int code) throws IOException;", "private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }", "@Test\n @Named(\"Naming examples\")\n @Order(2)\n public void _namingExamples() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| a | b | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| 0 | 1 |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"name is optional\\\"{ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"examples should not be null\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\"} \");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "public WaSignLineNameStrategy(){\n\n\t}", "@Override\n public boolean isRename() {\n return false;\n }", "public void setName(String n);", "public abstract String getRawName();", "public SYEParser(InputStream input, String name) throws FileNotFoundException {\n super(input);\n this.filename = name;\n }", "protected static String getFilename(String base) {\n //return Integer.toHexString(base.hashCode()) + \".map\";\n return base + \".map\";\n }", "ElementNameCode(int token, String name) {\n super(token);\n this.name = name;\n }", "private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}", "@Test\r\n public void testInvalidDecPrefixExpressionWithSIUnits() throws IOException {\n checkError(\"--varS\", \"0xA0173\");\r\n }", "public IniFile(String name) {\r\n this.filename = name;\r\n isavailable = parse(name);\r\n }", "public abstract String getUsageName();", "public static boolean isSafeIdentifierName(String name, int fromIndex) {\n int i = fromIndex;\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!(c == '$' || c == '@' || c == ':')) {\n break;\n }\n }\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!((c >= 'a' && c <= 'z') || (c == '_') ||\n (c >= 'A' && c <= 'Z') ||\n (c >= '0' && c <= '9') ||\n (c == '?') || (c == '=') || (c == '!'))) { // Method suffixes; only allowed on the last line\n\n if (isOperator(name)) {\n return true;\n }\n\n return false;\n }\n }\n\n return true;\n }", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public void Assemble(InputStream input) throws InvalidInstructionException, LabelNotResolvedException, ProgramSizeException {\r\n // Reset internal state\r\n codeSection = null;\r\n codeSectionList.clear();\r\n codeLine = 0;\r\n codeInstruction = new String();\r\n Emitter emitter = new Emitter();\r\n codeEmitter.setEmitter(emitter);\r\n // Instantiate the text reader\r\n reader = new TextReader(input);\r\n\r\n // REGEX matcher\r\n Matcher m = null;\r\n\r\n // Pass 1: instantiate list of instructions\r\n for(codeLine = 1;; codeLine++) {\r\n // Read single line from stream\r\n try { codeInstruction = reader.readLine(); }\r\n // RuntimeException at EOF\r\n catch(RuntimeException e) { break; }\r\n\r\n // Remove any comments\r\n int comment = codeInstruction.indexOf(COMMENT_CHAR);\r\n if(comment >= 0) codeInstruction = codeInstruction.substring(0, comment);\r\n\r\n // Try parsing it as a section\r\n m = patternSection.matcher(codeInstruction);\r\n if(m.matches()) { enterSection(m.group(1)); continue; }\r\n\r\n // Try parsing it as an instruction\r\n m = patternInstruction.matcher(codeInstruction);\r\n if(m.matches()) {\r\n // If there is no section bail out\r\n if(currentSection() == null && (m.group(1) != null || m.group(2) != null))\r\n invalidInstruction(\"Instruction and/or label outside of a section!\");\r\n\r\n // See if there is a label\r\n if(m.group(1) != null) addLabel(m.group(1));\r\n // See if there is an instruction\r\n if(m.group(2) != null) addInstruction(m.group(2), parseOperands(m.group(3)));\r\n }\r\n }\r\n\r\n // Add section for text constants\r\n Section textConst = enterSection(\".textconst\");\r\n emitter.setDataSection(textConst);\r\n\r\n // Pass 2: layout sections\r\n int baseAddress = 0;\r\n for(Section section : codeSectionList) {\r\n section.setAddress(baseAddress);\r\n baseAddress += section.getSize();\r\n }\r\n\r\n // Pass 3: resolve label operands\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n for(Operand op : instr.getOperands())\r\n if(op instanceof LabelOperand) {\r\n LabelOperand lop = (LabelOperand) op;\r\n Integer addr = getLabel(lop.getLabel());\r\n if(addr != null) lop.setAddress(addr);\r\n }\r\n\r\n // Pass 4: generate machine code\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n processInstruction(instr);\r\n\r\n // Check final program size, we need at least one byte for the stack\r\n if(getSize() > Machine.memorySize - 1)\r\n throw new ProgramSizeException(\"size of program, \" + getSize() + \" words, exceeds machine maximum of \" + (Machine.memorySize - 1));\r\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "void updateConstructorsNames(Identifier name) throws SourceException {\n }", "private boolean examineName(String name) {\r\n resourceName = null;\r\n resourceIsClass = false;\r\n\r\n if (name.endsWith(\".java\")) {\r\n return false;\r\n }\r\n\r\n if (name.endsWith(\".class\")) {\r\n name = name.substring(0, name.length() - 6);\r\n if (classMap.containsKey(name)) {\r\n return false;\r\n }\r\n resourceIsClass = true;\r\n } else {\r\n if (resourceMap.containsKey(name)) {\r\n return false;\r\n }\r\n }\r\n\r\n resourceName = name;\r\n return true;\r\n }", "java.lang.String getCodeName();", "public void testServiceName()\n\t\tthrows Exception\n\t\t{\n\t\tassertEquals(\n\t\t\t\"ivo://one.two/three#four\",\n\t\t\tFileStoreIvornFactory.createIdent(\n\t\t\t\t\"one.two/three\",\n\t\t\t\t\"four\"\n\t\t\t\t)\n\t\t\t) ;\n\t\t}", "public NFA(String fn){readMachineDescription(new File(fn));}", "String getMarkingInstruction();", "public void makeName(String str) {\n this.name = str + iL++;\n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "private static void condenseISA(File ipf, File opf) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new FileReader(ipf));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(opf)));\n\t\t\n\t\t// Condense\n\t\tString line = \"\",\n\t\t\t mnemonic = \"\",\n\t\t\t opcode = \"\",\n\t\t\t stackBefore = \"\",\n\t\t\t stackAfter = \"\",\n\t\t\t output = \"\";\n\t\tint opcodeCount = 0;\n\t\t\n\t\twhile((line = in.readLine()) != null) {\n\t\t\t// Control characters only\n\t\t\tif(line.startsWith(\".\")) {\n\t\t\t\tmnemonic = line.trim().substring(1);\n\t\t\t\t\n\t\t\t\tif(debug) System.out.println(mnemonic);\n\t\t\t} else if(line.startsWith(\">\")) {\n\t\t\t\t// Isolate opcode\n\t\t\t\tMatcher matcher = Pattern.compile(\"[0-9a-fA-F]+\").matcher(line);\n\t\t\t\tmatcher.find();\n\t\t\t\topcode = matcher.group();\n\t\t\t\t\n\t\t\t\tif(debug) System.out.println(opcode);\n\t\t\t} else if(line.trim().startsWith(\"...\") || line.trim().toLowerCase().equals(\"no change\")) {\n\t\t\t\tString s = line.trim();\n\t\t\t\t\n\t\t\t\t// First or second stack line\n\t\t\t\tif(stackBefore.equals(\"\")) {\n\t\t\t\t\tstackBefore = s;\n\t\t\t\t\tif(debug) System.out.println(stackBefore);\n\t\t\t\t} else {\n\t\t\t\t\tstackAfter = s;\n\t\t\t\t\tif(debug) System.out.println(stackAfter);\n\t\t\t\t}\n\t\t\t} else if((line.startsWith(\"~\") || line.trim().startsWith(\"-\")) && !mnemonic.equals(\"\")) {\n\t\t\t\t// End of the relevant information for the instruction, write it\n\t\t\t\toutput += opcode + \" \" + mnemonic + \"\\r\\n\";\n\t\t\t\tif(!stackBefore.equals(\"\")) output += \" \" + stackBefore + \"\\r\\n\";\n\t\t\t\tif(!stackAfter.equals(\"\")) output += \" \" + stackAfter + \"\\r\\n\";\n\t\t\t\toutput += \"\\r\\n\";\n\t\t\t\t\n\t\t\t\t// Clear values cause we don't have them anymore\n\t\t\t\topcode = \"\";\n\t\t\t\tmnemonic = \"\";\n\t\t\t\tstackBefore = \"\";\n\t\t\t\tstackAfter = \"\";\n\t\t\t\t\n\t\t\t\topcodeCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Print header and file\n\t\tout.println(header + opcodeCount + \"\\r\\n\\r\\n\");\n\t\tout.println(output);\n\t\t\n\t\tin.close();\n\t\tout.flush();\n\t\tout.close();\n\t}", "public void testNewSeqNamedSrc() throws Exception\n {\n String accid = null;\n MSRawAttributes raw = new MSRawAttributes();\n raw.setLibraryName(\"name1\");\n raw.setOrganism(\"mouse, laboratory\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertEquals(new Integer(-20), ms.getMSKey());\n }", "@Test\r\n public void testInvalidDecSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS--\", \"0xA0171\");\r\n }", "private boolean restrizione8_1()\r\n\t\t{\r\n\t\tAEIdecl idecl = this.AEIsDeclInput.get(0);\r\n\t\tString string = idecl.getName();\r\n\t\tfor (int i = 1; i < this.AEIsDeclInput.size(); i++)\r\n\t\t\t{\r\n\t\t\tAEIdecl idecl2 = this.AEIsDeclInput.get(i);\r\n\t\t\tString string2 = idecl2.getName();\r\n\t\t\tif (!string.equals(string2))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}", "public void readInstruction() {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(instructionFile);\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString instruction = scan.nextLine();\n\t\t\t\tScanner sc = new Scanner(instruction);\n\t\t\t\tString keyword, param;\n\t\t\t\tif(sc.hasNext()) {\n\t\t\t\t\tkeyword = sc.next();\n\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\tparam = sc.nextLine();\n\t\t\t\t\t\tif(keyword.equalsIgnoreCase(\"update\")) {\n\t\t\t\t\t\t\trecord.updateDonator(param);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (keyword.equalsIgnoreCase(\"delete\")) {\n\t\t\t\t\t\t\trecord.deleteDonator(param);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (keyword.equalsIgnoreCase(\"donate\")) {\n\t\t\t\t\t\t\trecord.donateDonator(param);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (keyword.equalsIgnoreCase(\"query\")) {\n\t\t\t\t\t\t\trecord.queryDonator(param);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t\tscan.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n\t\tif (label.indexOf('(') > 0 && label.indexOf(')') > 0) {\n\t\t\tbdsvm.updateFunctionPc(label, pc());\n\t\t} else {\n\t\t\tbdsvm.addLabel(label, pc());\n\t\t}\n\n\t\treturn rest.trim();\n\t}", "public interface NameMangler\n {\n /**\n * Convert the given string to a new string using a convention determined\n * by the implementer.\n * \n * @param sName original string\n *\n * @return mangled string\n */\n public String mangle(String sName);\n }", "org.hl7.fhir.CodeableConcept addNewName();", "public abstract INameSpace getNameSpace();", "private boolean isNameValid(String name) {\n\n }", "int getNameSourceStart();", "abstract public String getName();", "abstract public String getName();", "public void setName(String name) throws Exception;", "public java.lang.String shortName () { throw new RuntimeException(); }", "private String fixName(String name, String prefix)\n {\n if (name.startsWith(prefix))\n return name.substring(prefix.length());\n return FIXME_INVALID_PREFIX + name;\n }" ]
[ "0.6021159", "0.58332646", "0.5702275", "0.5476041", "0.54341227", "0.541273", "0.5406265", "0.54051507", "0.53833485", "0.5361687", "0.5339997", "0.53120047", "0.5279586", "0.5260037", "0.5259674", "0.5252595", "0.52313715", "0.52310145", "0.5224072", "0.51871413", "0.51838076", "0.5177245", "0.5175351", "0.51751333", "0.51601565", "0.51544476", "0.51544476", "0.5147926", "0.5136226", "0.5135188", "0.51334137", "0.5125218", "0.5122689", "0.5114248", "0.5107101", "0.509639", "0.50942045", "0.5082737", "0.50818473", "0.5070958", "0.50620097", "0.5050197", "0.5034483", "0.5016314", "0.5010039", "0.50054157", "0.50053203", "0.49969637", "0.49951017", "0.49934894", "0.4990699", "0.4986253", "0.49827272", "0.49799612", "0.49761534", "0.49751994", "0.49741468", "0.4972477", "0.49693084", "0.4958314", "0.4956114", "0.495029", "0.49485084", "0.49459183", "0.49456513", "0.4944496", "0.4938031", "0.49366868", "0.49360445", "0.49255538", "0.49254715", "0.49198774", "0.49136752", "0.49104753", "0.4907775", "0.49052984", "0.4903629", "0.49027976", "0.48972592", "0.48945403", "0.48914555", "0.4890489", "0.4889449", "0.48881182", "0.48824874", "0.48797777", "0.48794076", "0.4877831", "0.4861287", "0.48585898", "0.4858575", "0.48556104", "0.4853787", "0.48515713", "0.48506343", "0.48504123", "0.48504123", "0.48483312", "0.48445034", "0.4829737" ]
0.50816023
39